<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>http://groups.google.com.au/group/cake-php</id>
  <title type="text">CakePHP Google Group</title>
  <subtitle type="text">
  Search this group before posting anything. There are over 50,000 posts and it&#39;s very likely your question has already been answered. Visit the IRC channel #cakephp at irc.freenode.net. The group is moderated to prevent spam, so please be patient if you are new member.
  </subtitle>
  <link href="/group/cake-php/feed/atom_v1_0_msgs.xml" rel="self" title="CakePHP feed"/>
  <updated>2009-11-24T20:51:46Z</updated>
  <generator uri="http://groups.google.com.au" version="1.99">Google Groups</generator>
  <entry>
  <author>
  <name>Ma&#39;moon</name>
  <email>phpir...@gmail.com</email>
  </author>
  <updated>2009-11-24T20:51:46Z</updated>
  <id>http://groups.google.com.au/group/cake-php/browse_thread/thread/b3294f737697459f/349ab3140386972c?show_docid=349ab3140386972c</id>
  <link href="http://groups.google.com.au/group/cake-php/browse_thread/thread/b3294f737697459f/349ab3140386972c?show_docid=349ab3140386972c"/>
  <title type="text">Re: paginate loosing args</title>
  <summary type="html" xml:space="preserve">
  Please send a controller dump and your view code so we can help you &lt;br&gt; &lt;p&gt;-- &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://phpirate.net&quot;&gt;[link]&lt;/a&gt;
  </summary>
  </entry>
  <entry>
  <author>
  <name>AD7six</name>
  <email>andydawso...@gmail.com</email>
  </author>
  <updated>2009-11-24T20:51:46Z</updated>
  <id>http://groups.google.com.au/group/cake-php/browse_thread/thread/fa40a88daf8bc819/6a2df158cd728c6a?show_docid=6a2df158cd728c6a</id>
  <link href="http://groups.google.com.au/group/cake-php/browse_thread/thread/fa40a88daf8bc819/6a2df158cd728c6a?show_docid=6a2df158cd728c6a"/>
  <title type="text">Re: Nice url for webroot/files</title>
  <summary type="html" xml:space="preserve">
  Are you hand writing that url? &lt;br&gt; &lt;p&gt;sure echo $html-&amp;gt;url(&#39;/files/[subdir]/[f ilename]&#39;) will give you that &lt;br&gt; url.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Martin Atukunda</name>
  <email>matl...@gmail.com</email>
  </author>
  <updated>2009-11-24T20:49:15Z</updated>
  <id>http://groups.google.com.au/group/cake-php/browse_thread/thread/ebdca82b36c8b8ac/12b2c66362452b55?show_docid=12b2c66362452b55</id>
  <link href="http://groups.google.com.au/group/cake-php/browse_thread/thread/ebdca82b36c8b8ac/12b2c66362452b55?show_docid=12b2c66362452b55"/>
  <title type="text">Re: Creating a login screen</title>
  <summary type="html" xml:space="preserve">
  To redirect the user first to the login page instead of the standard &lt;br&gt; home/welcome page edit app/config/routes.php and change this line: &lt;br&gt; &lt;p&gt;Router::connect(&#39;/&#39;, array(&#39;controller&#39; =&amp;gt; &#39;pages&#39;, &#39;action&#39; =&amp;gt; &lt;br&gt; &#39;display&#39;, &#39;home&#39;)); &lt;br&gt; &lt;p&gt;to &lt;br&gt; &lt;p&gt;Router::connect(&#39;/&#39;, array(&#39;controller&#39; =&amp;gt; &#39;users&#39;, &#39;action&#39; =&amp;gt;
  </summary>
  </entry>
  <entry>
  <author>
  <name>AD7six</name>
  <email>andydawso...@gmail.com</email>
  </author>
  <updated>2009-11-24T20:50:10Z</updated>
  <id>http://groups.google.com.au/group/cake-php/browse_thread/thread/287e962a3caadf9d/1e248ff5ee69be8f?show_docid=1e248ff5ee69be8f</id>
  <link href="http://groups.google.com.au/group/cake-php/browse_thread/thread/287e962a3caadf9d/1e248ff5ee69be8f?show_docid=1e248ff5ee69be8f"/>
  <title type="text">Re: How set value for root parents using tree recover</title>
  <summary type="html" xml:space="preserve">
  why
  </summary>
  </entry>
  <entry>
  <author>
  <name>Aldo</name>
  <email>abombe...@gmail.com</email>
  </author>
  <updated>2009-11-24T20:48:41Z</updated>
  <id>http://groups.google.com.au/group/cake-php/browse_thread/thread/287e962a3caadf9d/02c811f1eebfa547?show_docid=02c811f1eebfa547</id>
  <link href="http://groups.google.com.au/group/cake-php/browse_thread/thread/287e962a3caadf9d/02c811f1eebfa547?show_docid=02c811f1eebfa547"/>
  <title type="text">How set value for root parents using tree recover</title>
  <summary type="html" xml:space="preserve">
  Hello, &lt;br&gt; &lt;p&gt;When using recover the parent_id fields for root entries are empty. &lt;br&gt; Is there a way to set a default value like &amp;quot;-1&amp;quot; as parent_id for root &lt;br&gt; items? &lt;br&gt; &lt;p&gt;Thanks &lt;br&gt; Aldo
  </summary>
  </entry>
  <entry>
  <author>
  <name>Ian R</name>
  <email>ianrick...@gmail.com</email>
  </author>
  <updated>2009-11-24T20:43:27Z</updated>
  <id>http://groups.google.com.au/group/cake-php/browse_thread/thread/18ea4a5d65ec3ec7/b4855ceeb4e58f57?show_docid=b4855ceeb4e58f57</id>
  <link href="http://groups.google.com.au/group/cake-php/browse_thread/thread/18ea4a5d65ec3ec7/b4855ceeb4e58f57?show_docid=b4855ceeb4e58f57"/>
  <title type="text">Re: Associate by condition</title>
  <summary type="html" xml:space="preserve">
  Couldn&#39;t you just create a method in your model which does this, using &lt;br&gt; Find()? For example, FindStandard() or FindByType(&#39;STANDARD&#39;)? I &lt;br&gt; believe that&#39;s Cake-y, and it keeps your controller lean and your &lt;br&gt; model fat :) &lt;br&gt; &lt;p&gt;Ian
  </summary>
  </entry>
  <entry>
  <author>
  <name>Mario Cesar</name>
  <email>mario...@gmail.com</email>
  </author>
  <updated>2009-11-24T20:38:56Z</updated>
  <id>http://groups.google.com.au/group/cake-php/browse_thread/thread/b3294f737697459f/c8bd3831dc2952de?show_docid=c8bd3831dc2952de</id>
  <link href="http://groups.google.com.au/group/cake-php/browse_thread/thread/b3294f737697459f/c8bd3831dc2952de?show_docid=c8bd3831dc2952de"/>
  <title type="text">Re: paginate loosing args</title>
  <summary type="html" xml:space="preserve">
  *I tried too &lt;br&gt; *
  </summary>
  </entry>
  <entry>
  <author>
  <name>Dave</name>
  <email>davidcr...@gmail.com</email>
  </author>
  <updated>2009-11-24T20:36:45Z</updated>
  <id>http://groups.google.com.au/group/cake-php/browse_thread/thread/ebdca82b36c8b8ac/3fce23c12dff2d5d?show_docid=3fce23c12dff2d5d</id>
  <link href="http://groups.google.com.au/group/cake-php/browse_thread/thread/ebdca82b36c8b8ac/3fce23c12dff2d5d?show_docid=3fce23c12dff2d5d"/>
  <title type="text">Re: Creating a login screen</title>
  <summary type="html" xml:space="preserve">
  First read this CLOSELY: &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://book.cakephp.org/view/172/Authentication&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; &lt;p&gt;Then google CakePHP Auth tutorial and follow one if you need more info... A &lt;br&gt; lot of people get messed up with the Auth Component so read as much as you &lt;br&gt; can. &lt;br&gt; &lt;p&gt;One thing that will probably mess you up: You want to change your login
  </summary>
  </entry>
  <entry>
  <author>
  <name>Ma&#39;moon</name>
  <email>phpir...@gmail.com</email>
  </author>
  <updated>2009-11-24T20:36:17Z</updated>
  <id>http://groups.google.com.au/group/cake-php/browse_thread/thread/b3294f737697459f/55aba06f1e5df4a4?show_docid=55aba06f1e5df4a4</id>
  <link href="http://groups.google.com.au/group/cake-php/browse_thread/thread/b3294f737697459f/55aba06f1e5df4a4?show_docid=55aba06f1e5df4a4"/>
  <title type="text">Re: paginate loosing args</title>
  <summary type="html" xml:space="preserve">
  If you are using POST to send the ID of the target article then try sending &lt;br&gt; it using GET &lt;br&gt; &lt;p&gt;-- &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://phpirate.net&quot;&gt;[link]&lt;/a&gt;
  </summary>
  </entry>
  <entry>
  <author>
  <name>Mario Cesar</name>
  <email>mario...@gmail.com</email>
  </author>
  <updated>2009-11-24T20:31:12Z</updated>
  <id>http://groups.google.com.au/group/cake-php/browse_thread/thread/b3294f737697459f/7f23284fbdf24b2f?show_docid=7f23284fbdf24b2f</id>
  <link href="http://groups.google.com.au/group/cake-php/browse_thread/thread/b3294f737697459f/7f23284fbdf24b2f?show_docid=7f23284fbdf24b2f"/>
  <title type="text">Re: paginate loosing args</title>
  <summary type="html" xml:space="preserve">
  i tried but didn&#39;t work
  </summary>
  </entry>
  <entry>
  <author>
  <name>Dewayne Pinion</name>
  <email>dpin...@gmail.com</email>
  </author>
  <updated>2009-11-24T20:30:59Z</updated>
  <id>http://groups.google.com.au/group/cake-php/browse_thread/thread/ebdca82b36c8b8ac/19d9cdfb24734232?show_docid=19d9cdfb24734232</id>
  <link href="http://groups.google.com.au/group/cake-php/browse_thread/thread/ebdca82b36c8b8ac/19d9cdfb24734232?show_docid=19d9cdfb24734232"/>
  <title type="text">Re: Creating a login screen</title>
  <summary type="html" xml:space="preserve">
  AHHHHHHHHHHHHHHH! I can&#39;t believe I overlooked that. That fixed it, thank &lt;br&gt; you! I feel like a dummy about now.. lol. &lt;br&gt; &lt;p&gt;So for the next part of this little project, how do I default to this login &lt;br&gt; page? For example, currently if you go to mysite/admin/comments, you are &lt;br&gt; taken to the comments page. However, I would like to redirect the user first
  </summary>
  </entry>
  <entry>
  <author>
  <name>Martin Atukunda</name>
  <email>matl...@gmail.com</email>
  </author>
  <updated>2009-11-24T20:10:28Z</updated>
  <id>http://groups.google.com.au/group/cake-php/browse_thread/thread/ebdca82b36c8b8ac/a25a580445985cb6?show_docid=a25a580445985cb6</id>
  <link href="http://groups.google.com.au/group/cake-php/browse_thread/thread/ebdca82b36c8b8ac/a25a580445985cb6?show_docid=a25a580445985cb6"/>
  <title type="text">Re: Creating a login screen</title>
  <summary type="html" xml:space="preserve">
  Hi Dewayne, &lt;br&gt; &lt;p&gt;Just checking - do you have the opening and closing php tag? &lt;br&gt; &lt;p&gt;i.e. &lt;br&gt; &lt;p&gt;&amp;lt;?php &lt;br&gt; class UsersController extends AppController{ &lt;br&gt; var $name = &#39;Users&#39;; &lt;br&gt; var $components = array(&#39;Auth&#39;); &lt;br&gt; &lt;p&gt; funciton login() { &lt;br&gt; } &lt;br&gt; function logout() { &lt;br&gt; $this-&amp;gt;redirect($this-&amp;gt;Auth-&amp;gt;l ogout()); &lt;br&gt; ?&amp;gt;
  </summary>
  </entry>
  <entry>
  <author>
  <name>Dave</name>
  <email>davidcr...@gmail.com</email>
  </author>
  <updated>2009-11-24T20:25:11Z</updated>
  <id>http://groups.google.com.au/group/cake-php/browse_thread/thread/ebdca82b36c8b8ac/be34bb0f2e22e68e?show_docid=be34bb0f2e22e68e</id>
  <link href="http://groups.google.com.au/group/cake-php/browse_thread/thread/ebdca82b36c8b8ac/be34bb0f2e22e68e?show_docid=be34bb0f2e22e68e"/>
  <title type="text">Re: Creating a login screen</title>
  <summary type="html" xml:space="preserve">
  And remove this from your routes.php: &lt;br&gt; &lt;p&gt;Router::connect(&#39;/admin&#39;, array(&#39;controller&#39; =&amp;gt; &#39;pages&#39;, &#39;action&#39; =&amp;gt; &lt;br&gt; &#39;index&#39;, &#39;admin&#39; =&amp;gt; true)); &lt;br&gt; &lt;p&gt;but leave &lt;br&gt; &lt;p&gt;Configure::write(&#39;Routing.admi n&#39;, &#39;admin&#39;); &lt;br&gt; &lt;p&gt;uncommented in core.php
  </summary>
  </entry>
  <entry>
  <author>
  <name>Dave</name>
  <email>davidcr...@gmail.com</email>
  </author>
  <updated>2009-11-24T20:24:06Z</updated>
  <id>http://groups.google.com.au/group/cake-php/browse_thread/thread/ebdca82b36c8b8ac/0a47ff1e96a0e63e?show_docid=0a47ff1e96a0e63e</id>
  <link href="http://groups.google.com.au/group/cake-php/browse_thread/thread/ebdca82b36c8b8ac/0a47ff1e96a0e63e?show_docid=0a47ff1e96a0e63e"/>
  <title type="text">Re: Creating a login screen</title>
  <summary type="html" xml:space="preserve">
  if the url is /admin/users/login then Cake will look for an action called &lt;br&gt; &amp;quot;admin_login&amp;quot; in users_controller.php . Change the name of the login &lt;br&gt; function to this and let me know if that works.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Dave</name>
  <email>davidcr...@gmail.com</email>
  </author>
  <updated>2009-11-24T20:20:38Z</updated>
  <id>http://groups.google.com.au/group/cake-php/browse_thread/thread/b3294f737697459f/d1206125414fbdc5?show_docid=d1206125414fbdc5</id>
  <link href="http://groups.google.com.au/group/cake-php/browse_thread/thread/b3294f737697459f/d1206125414fbdc5?show_docid=d1206125414fbdc5"/>
  <title type="text">Re: paginate loosing args</title>
  <summary type="html" xml:space="preserve">
  in the paginate array in your view file add &lt;br&gt; &lt;p&gt;&#39;url&#39;=&amp;gt;$this-&amp;gt;passedArgs
  </summary>
  </entry>
</feed>
