<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum CakePHP.org.pl - Wtyczki (Pluginy)]]></title>
	<link rel="self" href="http://forum.cakephp.org.pl/feed/atom/forum/7/"/>
	<updated>2011-11-05T12:15:03Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.cakephp.org.pl/</id>
		<entry>
			<title type="html"><![CDATA[wyszukiwarka rekordów]]></title>
			<link rel="alternate" href="http://forum.cakephp.org.pl/topic/179/wyszukiwarka-rekordow/new/posts/"/>
			<summary type="html"><![CDATA[<p>witam, mam takie pytanie jak zrobić wyszukiwarkę pojedynczego rekordu z po sród wielu, tzn. załóżmy ze mam bazę klientów np.100 i nie chce wyświetlać wszystkich rekordów, tylko jeden konkretny np po nr tel albo po nazwisku nr pesel? tak by wyświetliło mi konkretny rekord(kartę klienta)? formularz załóżmy że miał by kilka pozycji np. imię, nazwisko,nr pesel,nr kont, nr klienta,adres, i żeby można było wyszukać po jednym z tych pól lub po wszystkich by zacieśnić wyniki wyszukiwania?&nbsp; Czy ktoś ma jakiś pomysł jak skonstruować taka wyszukiwarkę? Dodam ze jestem początkujacy w cakephp.</p>]]></summary>
			<author>
				<name><![CDATA[stinger]]></name>
				<uri>http://forum.cakephp.org.pl/user/339/</uri>
			</author>
			<updated>2011-11-05T12:15:03Z</updated>
			<id>http://forum.cakephp.org.pl/topic/179/wyszukiwarka-rekordow/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AJAX Helper wykorzystujący jQuery]]></title>
			<link rel="alternate" href="http://forum.cakephp.org.pl/topic/126/ajax-helper-wykorzystujacy-jquery/new/posts/"/>
			<summary type="html"><![CDATA[<p>Witam!<br />Jakis czas temu udalo mi sie napisac helper do AJAX używajacy jQuery zamiast Prototype. Nie jest on w 100% kompatybilny z orginalem, ale chyba warto spróbowac, ponieważ w moim mniemaniu Prototype umiera. Link poniżej.<br /><a href="http://www.cakephp.bee.pl">AJAX Helper</a></p><p>Dajcie znac co o tym myslicie!</p>]]></summary>
			<author>
				<name><![CDATA[jozek000]]></name>
				<uri>http://forum.cakephp.org.pl/user/264/</uri>
			</author>
			<updated>2010-03-06T11:34:54Z</updated>
			<id>http://forum.cakephp.org.pl/topic/126/ajax-helper-wykorzystujacy-jquery/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[belongsTo w pluginach]]></title>
			<link rel="alternate" href="http://forum.cakephp.org.pl/topic/116/belongsto-w-pluginach/new/posts/"/>
			<summary type="html"><![CDATA[<p>Witam </p><p>Mam&nbsp; problem ze zwiazkami miedzy modelami pluginu. Potrzebuje użyć zwiazku belongsTo, ale nie chce mi to wogole działac ;/<br />Znalazlem takie cos<br /></p><div class="codebox"><pre><code>&lt;?php

App::import(&#039;Model&#039;, &#039;ShopProducer&#039;);

class ShopProduct extends AppModel {

    var $name = &#039;ShopProduct&#039;;
    
    var $belongsTo = array(
        &#039;ShopProducer&#039; =&gt; array(
            &#039;className&#039; =&gt; &#039;ShopProducer&#039;
        )
    );
    
}</code></pre></div><p>ale to tez nie dziala ;/<br />Bede wdzieczny za jakakolwiek pomoc</p>]]></summary>
			<author>
				<name><![CDATA[suleks]]></name>
				<uri>http://forum.cakephp.org.pl/user/242/</uri>
			</author>
			<updated>2009-11-27T13:35:31Z</updated>
			<id>http://forum.cakephp.org.pl/topic/116/belongsto-w-pluginach/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Outlook]]></title>
			<link rel="alternate" href="http://forum.cakephp.org.pl/topic/98/outlook/new/posts/"/>
			<summary type="html"><![CDATA[<p>Hej,</p><p>Tworzył ktoś coś kiedyś na kształt integracji z Outlookiem? W szczególności wysyłanie/odbieranie maili oraz wysyłanie do Outlooka kontaktów?</p>]]></summary>
			<author>
				<name><![CDATA[duke_piotr]]></name>
				<uri>http://forum.cakephp.org.pl/user/31/</uri>
			</author>
			<updated>2009-08-13T14:51:43Z</updated>
			<id>http://forum.cakephp.org.pl/topic/98/outlook/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[JpGraph]]></title>
			<link rel="alternate" href="http://forum.cakephp.org.pl/topic/72/jpgraph/new/posts/"/>
			<summary type="html"><![CDATA[<p>Mam pytanie - czy ktos uzywal takiej klasy to generowania wykresow?</p><p>Moj problem polega na tym ,iz po aktualizacji Cake z 1.0 do 1.2 przestal mi dzialac ten helper:/ Wydaje mi sie ze wszystko juz poprawilem - widze juz ze generuje się jpg ale niestety.... jest na nim ciagle napisany blad iz musze okreslic szerokosc i wysokosc w Graph::Graph().</p><p>Dochodze krok po kroku do tej funkcji a nawet usunąlem sprawdzanie bledu i wpisywalem na stale wysokosc i szerokosc ale to nie dalo mi rezultatu.</p><p>Jezeli ktos sie z takim problemem borykal to czekam na info ;]</p>]]></summary>
			<author>
				<name><![CDATA[duke_piotr]]></name>
				<uri>http://forum.cakephp.org.pl/user/31/</uri>
			</author>
			<updated>2009-05-18T06:12:21Z</updated>
			<id>http://forum.cakephp.org.pl/topic/72/jpgraph/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Brakujacy widok plugina - bug]]></title>
			<link rel="alternate" href="http://forum.cakephp.org.pl/topic/64/brakujacy-widok-plugina-bug/new/posts/"/>
			<summary type="html"><![CDATA[<p>Moze komus sie przyda...</p><p>w przypadku uzycia camelCase w nazwie plugina np formManager , sciezka do widoku jest blednie ustawiana w klasie widok, i wyglada np tak</p><p>/var/www/mojaAplikacja/app/plugins/formManager/views/settings/admin_index.ctp</p><p>zamiast :</p><p>../plugins/form_manager/views/.. ( camelCase zamieniony na uderscored, lowercased words), chwilowe rozwiazanie to modyfiikacja classy view (cake/libs/view/view.php )</p><p>linia 803:<br /></p><div class="codebox"><pre><code>$paths = $this-&gt;_paths($this-&gt;plugin);

zamienic na : 

$paths = $this-&gt;_paths(Inflector::underscore($this-&gt;plugin));</code></pre></div>]]></summary>
			<author>
				<name><![CDATA[robal77]]></name>
				<uri>http://forum.cakephp.org.pl/user/143/</uri>
			</author>
			<updated>2009-05-03T15:07:18Z</updated>
			<id>http://forum.cakephp.org.pl/topic/64/brakujacy-widok-plugina-bug/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RecordControllBehavior - wersja alpha]]></title>
			<link rel="alternate" href="http://forum.cakephp.org.pl/topic/51/recordcontrollbehavior-wersja-alpha/new/posts/"/>
			<summary type="html"><![CDATA[<p>Z zalozenia ma sprawdzac uprawnienia do dowolnego rekordu podczas wykonywania operacji CRUD, w chwili obecenj mocno niedorobiony zwlaszcza callback beforeFind... Model w ktorym sprawdzamy uprawnienia&nbsp; &nbsp;uzytkownika musi miec ustawione pole aroId - ktore na chwil obecna jest id uzytkownika dla z tabeli users.</p><div class="codebox"><pre><code>&lt;?php
App::import(&quot;Component&quot;,&quot;Acl&quot;);

class RecordControllBehavior extends ModelBehavior
{

    private $Acl;
    private $Aro;
    private $Aco;
    
    public function setup($model,$config){
        $this-&gt;Acl = new AclComponent();
        $this-&gt;Aro = $model-&gt;getModelObject(&quot;Aro&quot;);
        $this-&gt;Aco = $model-&gt;getModelObject(&quot;Aco&quot;);
    }

    public function beforeFind($model,$queryData) {
        if(empty($model-&gt;aroId))
            return false;

        //TODO: uwglednic warunki OR, NOT i IN
        if(!empty($queryData[&#039;conditions&#039;][$model-&gt;primaryKey])):
            if($this-&gt;Acl-&gt;check(array(&#039;model&#039; =&gt; &#039;User&#039;, &#039;foreign_key&#039; =&gt; $model-&gt;aroId), array(&quot;model&quot; =&gt; $model-&gt;name , &quot;foreign_key&quot; =&gt; $queryData[&#039;conditions&#039;][$model-&gt;primaryKey]), &quot;read&quot;) !== true)
                return false;
            else
                return $queryData;
        endif;

        $aco = $this-&gt;Aco-&gt;find(&#039;first&#039;, array(&#039;conditions&#039; =&gt; array(&#039;alias&#039; =&gt; $model-&gt;name), &quot;fields&quot; =&gt; array(&quot;id&quot;, &quot;lft&quot;,&quot;rght&quot;)));
        $acos = set::extract($this-&gt;Aco-&gt;find(&#039;all&#039;, array(&#039;recursive&#039; =&gt; -1, &#039;conditions&#039; =&gt; array(&#039;lft &gt;=&#039; =&gt; $aco[&#039;Aco&#039;][&#039;lft&#039;], &#039;rght &lt;=&#039; =&gt; $aco[&#039;Aco&#039;][&#039;rght&#039;], &quot;NOT&quot; =&gt;array(&quot;id&quot; =&gt; $aco[&#039;Aco&#039;][&#039;id&#039;])), &quot;fields&quot; =&gt;array(&quot;foreign_key&quot;))),&quot;{n}.Aco.foreign_key&quot;);

        $stack = array();
        foreach($acos as $aco)
            if($this-&gt;Acl-&gt;check(array(&#039;model&#039; =&gt; &#039;User&#039;, &#039;foreign_key&#039; =&gt; $model-&gt;aroId),array(&quot;model&quot; =&gt; $model-&gt;name , &quot;foreign_key&quot; =&gt; $aco), &quot;read&quot;))
                $stack[] = $aco;

        $queryData[&#039;conditions&#039;][$model-&gt;primaryKey] = $stack;
        return $queryData;
    }

     public function beforeSave($model,$options) {
         if(empty($model-&gt;aroId))
            return false;
            
         if(empty($model-&gt;data[$model-&gt;name][$model-&gt;primaryKey])) {
            if($this-&gt;Acl-&gt;check(array(&#039;model&#039; =&gt; &#039;User&#039;, &#039;foreign_key&#039; =&gt; $model-&gt;aroId), $model-&gt;name, &quot;create&quot;) !== true)
                return false;

         } else
            if($this-&gt;Acl-&gt;check(array(&#039;model&#039; =&gt; &#039;User&#039;, &#039;foreign_key&#039; =&gt; $model-&gt;aroId), array(&quot;model&quot; =&gt; $model-&gt;name , &quot;foreign_key&quot; =&gt; $model-&gt;data[$model-&gt;name][$model-&gt;primaryKey]), &quot;update&quot;) !== true)
                return false;

         return true;
     }

     public function beforeDelete($model, $cascade) {
         if(empty($model-&gt;aroId))
            return false;

        if($this-&gt;Acl-&gt;check(array(&#039;model&#039; =&gt; &#039;User&#039;, &#039;foreign_key&#039; =&gt; $model-&gt;aroId), array(&quot;model&quot; =&gt; $model-&gt;name , &quot;foreign_key&quot; =&gt; $model-&gt;id), &quot;delete&quot;) !== true)
            return false;

        return true;
     }
}</code></pre></div><p>tabele : <br /></p><div class="codebox"><pre><code>CREATE TABLE IF NOT EXISTS `products` (
  `id` int(10) NOT NULL auto_increment,
  `name` varchar(32) NOT NULL,
  `tit` varchar(32) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;

--
-- Dumping data for table `products`
--

INSERT INTO `products` (`id`, `name`, `tit`) VALUES
(2, &#039;pr2&#039;, &#039;&#039;),
(3, &#039;pr3&#039;, &#039;&#039;),
(4, &#039;pr4&#039;, &#039;&#039;),
(5, &#039;pr5&#039;, &#039;&#039;),
(6, &#039;pr6&#039;, &#039;&#039;),
(7, &#039;pr7&#039;, &#039;&#039;),
(8, &#039;pr8&#039;, &#039;&#039;),
(9, &#039;pr9&#039;, &#039;&#039;),
(10, &#039;pr10&#039;, &#039;&#039;);</code></pre></div><div class="codebox"><pre><code>CREATE TABLE IF NOT EXISTS `users` (
  `id` int(10) NOT NULL auto_increment,
  `name` varchar(32) NOT NULL,
  `login` varchar(32) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `name`, `login`) VALUES
(1, &#039;user1&#039;, &#039;user1&#039;),
(2, &#039;user2&#039;, &#039;user2&#039;),
(3, &#039;user3&#039;, &#039;user3&#039;),
(4, &#039;user4&#039;, &#039;user4&#039;),
(5, &#039;user5&#039;, &#039;user5&#039;),
(6, &#039;user6&#039;, &#039;user6&#039;);</code></pre></div><p>acos ... aros </p><div class="codebox"><pre><code>       $aro = new Aro();
       $aco = new Aco();


       $groups = array(
        0 =&gt; array(
            &#039;alias&#039; =&gt; &#039;Product&#039;
        ));

    foreach($groups as $data)
    {
        //Remember to call create() when saving in loops...
        $aco-&gt;create($data);

        //Save data
        $aco-&gt;save();
    }


       $users = array(
        0 =&gt; array(
            &#039;alias&#039; =&gt; &#039;Product[1]&#039;,
            &#039;parent_id&#039; =&gt; 1,
            &#039;model&#039; =&gt; &#039;Product&#039;,
            &#039;foreign_key&#039; =&gt; 1,
        ),
        1 =&gt; array(
            &#039;alias&#039; =&gt; &#039;Product[2]&#039;,
            &#039;parent_id&#039; =&gt; 1,
            &#039;model&#039; =&gt; &#039;Product&#039;,
            &#039;foreign_key&#039; =&gt; 2,
        ),
        2 =&gt; array(
            &#039;alias&#039; =&gt; &#039;Product[3]&#039;,
            &#039;parent_id&#039; =&gt; 1,
            &#039;model&#039; =&gt; &#039;Product&#039;,
            &#039;foreign_key&#039; =&gt; 3,
        ),
        3 =&gt; array(
            &#039;alias&#039; =&gt; &#039;Product[4]&#039;,
            &#039;parent_id&#039; =&gt; 1,
            &#039;model&#039; =&gt; &#039;Product&#039;,
            &#039;foreign_key&#039; =&gt; 4,
        ),
         4 =&gt; array(
            &#039;alias&#039; =&gt; &#039;Product[5]&#039;,
            &#039;parent_id&#039; =&gt; 1,
            &#039;model&#039; =&gt; &#039;Product&#039;,
            &#039;foreign_key&#039; =&gt; 5,
        ),
        5 =&gt; array(
            &#039;alias&#039; =&gt; &#039;Product[6]&#039;,
            &#039;parent_id&#039; =&gt; 1,
            &#039;model&#039; =&gt; &#039;Product&#039;,
            &#039;foreign_key&#039; =&gt; 6,
        ),
         6 =&gt; array(
            &#039;alias&#039; =&gt; &#039;Product[7]&#039;,
            &#039;parent_id&#039; =&gt; 1,
            &#039;model&#039; =&gt; &#039;Product&#039;,
            &#039;foreign_key&#039; =&gt; 7,
        ),
        7 =&gt; array(
            &#039;alias&#039; =&gt; &#039;Product[8]&#039;,
            &#039;parent_id&#039; =&gt; 1,
            &#039;model&#039; =&gt; &#039;Product&#039;,
            &#039;foreign_key&#039; =&gt; 8,
        ),
        8 =&gt; array(
            &#039;alias&#039; =&gt; &#039;Product[9]&#039;,
            &#039;parent_id&#039; =&gt; 1,
            &#039;model&#039; =&gt; &#039;Product&#039;,
            &#039;foreign_key&#039; =&gt; 9,
        ),
        9 =&gt; array(
            &#039;alias&#039; =&gt; &#039;Product[10]&#039;,
            &#039;parent_id&#039; =&gt; 1,
            &#039;model&#039; =&gt; &#039;Product&#039;,
            &#039;foreign_key&#039; =&gt; 10,
        ),
    );

    //Iterate and create AROs (as children)
    foreach($users as $data)
    {
        //Remember to call create() when saving in loops...
        $aco-&gt;create($data);
        //Save data
        $aco-&gt;save();
    }


//Here&#039;s all of our group info in an array we can iterate through
    $groups = array(
        0 =&gt; array(
            &#039;alias&#039; =&gt; &#039;User&#039;
        ),
        
        1 =&gt; array(
            &#039;alias&#039; =&gt; &#039;Admin&#039;
        ),
    );

    //Iterate and create ARO groups
    foreach($groups as $data)
    {
        //Remember to call create() when saving in loops...
        $aro-&gt;create($data);

        //Save data
        $aro-&gt;save();
    }



       $users = array(
        0 =&gt; array(
            &#039;alias&#039; =&gt; &#039;User[1]&#039;,
            &#039;parent_id&#039; =&gt; 1,
            &#039;model&#039; =&gt; &#039;User&#039;,
            &#039;foreign_key&#039; =&gt; 1,
        ),
        1 =&gt; array(
            &#039;alias&#039; =&gt; &#039;User[2]&#039;,
            &#039;parent_id&#039; =&gt; 1,
            &#039;model&#039; =&gt; &#039;User&#039;,
            &#039;foreign_key&#039; =&gt; 2,
        ),
        2 =&gt; array(
            &#039;alias&#039; =&gt; &#039;User[3]&#039;,
            &#039;parent_id&#039; =&gt; 1,
            &#039;model&#039; =&gt; &#039;User&#039;,
            &#039;foreign_key&#039; =&gt; 3,
        ),
        3 =&gt; array(
            &#039;alias&#039; =&gt; &#039;User[4]&#039;,
            &#039;parent_id&#039; =&gt; 1,
            &#039;model&#039; =&gt; &#039;User&#039;,
            &#039;foreign_key&#039; =&gt; 4,
        ),
        4 =&gt; array(
            &#039;alias&#039; =&gt; &#039;User[5]&#039;,
            &#039;parent_id&#039; =&gt; 1,
            &#039;model&#039; =&gt; &#039;User&#039;,
            &#039;foreign_key&#039; =&gt; 5,
        ),
        5 =&gt; array(
            &#039;alias&#039; =&gt; &#039;User[6]&#039;,
            &#039;parent_id&#039; =&gt; 2,
            &#039;model&#039; =&gt; &#039;User&#039;,
            &#039;foreign_key&#039; =&gt; 6,
        )        
    );

    //Iterate and create AROs (as children)
    foreach($users as $data)
    {
        
        //Remember to call create() when saving in loops...
        $aro-&gt;create($data);

        //Save data
        $aro-&gt;save();        
    }

    //Other action logic goes here...

       
       $this-&gt;Acl-&gt;allow(array(&#039;model&#039; =&gt; &#039;User&#039;, &#039;foreign_key&#039; =&gt; 1), array(&#039;model&#039; =&gt; &quot;Product&quot; , &quot;foreign_key&quot; =&gt; &quot;1&quot;),array(&quot;read&quot;));
       $this-&gt;Acl-&gt;allow(array(&#039;model&#039; =&gt; &#039;User&#039;, &#039;foreign_key&#039; =&gt; 1), array(&#039;model&#039; =&gt; &quot;Product&quot; , &quot;foreign_key&quot; =&gt; &quot;2&quot;),array(&quot;read&quot;));
       $this-&gt;Acl-&gt;allow(array(&#039;model&#039; =&gt; &#039;User&#039;, &#039;foreign_key&#039; =&gt; 1), array(&#039;model&#039; =&gt; &quot;Product&quot; , &quot;foreign_key&quot; =&gt; &quot;3&quot;),array(&quot;read&quot;));
       $this-&gt;Acl-&gt;allow(array(&#039;model&#039; =&gt; &#039;User&#039;, &#039;foreign_key&#039; =&gt; 1), array(&#039;model&#039; =&gt; &quot;Product&quot; , &quot;foreign_key&quot; =&gt; &quot;4&quot;),array(&quot;read&quot;));
       $this-&gt;Acl-&gt;allow(array(&#039;model&#039; =&gt; &#039;User&#039;, &#039;foreign_key&#039; =&gt; 1), array(&#039;model&#039; =&gt; &quot;Product&quot; , &quot;foreign_key&quot; =&gt; &quot;5&quot;),array(&quot;read&quot;));
       
       $this-&gt;Acl-&gt;allow(array(&#039;model&#039; =&gt; &#039;User&#039;, &#039;foreign_key&#039; =&gt; 2), array(&#039;model&#039; =&gt; &quot;Product&quot; , &quot;foreign_key&quot; =&gt; &quot;6&quot;),array(&quot;read&quot;));
       $this-&gt;Acl-&gt;allow(array(&#039;model&#039; =&gt; &#039;User&#039;, &#039;foreign_key&#039; =&gt; 2), array(&#039;model&#039; =&gt; &quot;Product&quot; , &quot;foreign_key&quot; =&gt; &quot;7&quot;),array(&quot;read&quot;));
       $this-&gt;Acl-&gt;allow(array(&#039;model&#039; =&gt; &#039;User&#039;, &#039;foreign_key&#039; =&gt; 2), array(&#039;model&#039; =&gt; &quot;Product&quot; , &quot;foreign_key&quot; =&gt; &quot;8&quot;),array(&quot;read&quot;));


       $this-&gt;Acl-&gt;allow(array(&#039;model&#039; =&gt; &#039;User&#039;, &#039;foreign_key&#039; =&gt; 3), array(&#039;model&#039; =&gt; &quot;Product&quot; , &quot;foreign_key&quot; =&gt; &quot;6&quot;),array(&quot;read&quot;));
       $this-&gt;Acl-&gt;allow(array(&#039;model&#039; =&gt; &#039;User&#039;, &#039;foreign_key&#039; =&gt; 3), array(&#039;model&#039; =&gt; &quot;Product&quot; , &quot;foreign_key&quot; =&gt; &quot;7&quot;),array(&quot;read&quot;));
       $this-&gt;Acl-&gt;allow(array(&#039;model&#039; =&gt; &#039;User&#039;, &#039;foreign_key&#039; =&gt; 3), array(&#039;model&#039; =&gt; &quot;Product&quot; , &quot;foreign_key&quot; =&gt; &quot;8&quot;),array(&quot;read&quot;));
       $this-&gt;Acl-&gt;allow(array(&#039;model&#039; =&gt; &#039;User&#039;, &#039;foreign_key&#039; =&gt; 3), array(&#039;model&#039; =&gt; &quot;Product&quot; , &quot;foreign_key&quot; =&gt; &quot;1&quot;),array(&quot;read&quot;));
       $this-&gt;Acl-&gt;allow(array(&#039;model&#039; =&gt; &#039;User&#039;, &#039;foreign_key&#039; =&gt; 3), array(&#039;model&#039; =&gt; &quot;Product&quot; , &quot;foreign_key&quot; =&gt; &quot;2&quot;),array(&quot;read&quot;));

       $this-&gt;Acl-&gt;allow(array(&#039;model&#039; =&gt; &#039;User&#039;, &#039;foreign_key&#039; =&gt; 4), &quot;Product&quot;,array(&quot;read&quot;));

       $this-&gt;Acl-&gt;allow(&quot;Admin&quot;, &quot;Product&quot;);</code></pre></div><p>edit 1:<br />udalo sie zoptymalizować callback beforeFind, w chwili obecnej niezależnie od ilości liści w drzewie ( rekordów danego modelu) do sprawdzenia uprawnień (łącznie z dziedziczeniem uprawnień z gałęzi)&nbsp; potrzebne są tylko 2 zapytania. Jak będe mieć wenę to behavior będzie skończony dziś.</p>]]></summary>
			<author>
				<name><![CDATA[robal77]]></name>
				<uri>http://forum.cakephp.org.pl/user/143/</uri>
			</author>
			<updated>2009-03-25T08:26:41Z</updated>
			<id>http://forum.cakephp.org.pl/topic/51/recordcontrollbehavior-wersja-alpha/new/posts/</id>
		</entry>
</feed>

