Re: Custom URLs

2007-05-07 Thread themanfrombucharest
Hey, Try this on for size: Router::connect('/:language/:controller/:action/*'); (cake 1.2.x.x) $router-connect('/:language/:controller/:action/*'); (cake 1.1.x.x) In your controllers and views the language will be available in $this- params['language']. The problem gets a bit tricky when you

Re: Performance Time (debug variable)

2007-05-02 Thread themanfrombucharest
Actually it works with any library that sets the 'X-Requested-With' HTTP header. I'm using it successfully with jQuery in a current project. Cheers! On May 3, 2:13 am, Grant Cox [EMAIL PROTECTED] wrote: To the OP: just modify your index.php, removing the html comment. Robechar: the

Re: Routing and html helper

2007-05-02 Thread themanfrombucharest
If you're using 1.2 then maybe the new array based URL are what you need: $html-link('link', array('sitename' = 'a_site_name', 'controller' = 'posts', 'action' = 'index')); On May 3, 1:54 am, gerbenzomp [EMAIL PROTECTED] wrote: I've changed the routes in my app, so that my paths are like this:

Re: Accessor like command in CakePHP

2007-03-22 Thread themanfrombucharest
Hey Justin, In reply to your first question, no, there isn't anything like that in cake yet. So if you want accessors/mutators you have to write the functions yourself. The main reason for this is because the ORM layer in cake isn't fully object oriented yet (I understand it's planned for 2.0).

url() with fragment identifier

2007-01-19 Thread themanfrombucharest
Hello, I was wondering if there is a way to include a fragment identifier in a URL generated with Router::url() using the new way of passing the url in an array (cake 1.2dev)? Thanks in advance! P.S. if there isn't a way to do this I'll open an enhancement ticket on trac P.P.S I've read the

Re: url() with fragment identifier

2007-01-19 Thread themanfrombucharest
btw, on the following line you must also add 'fragment' to the skip array: 430 $skip = array('action', 'controller', 'plugin', 'ext', '?', 'fragment'); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: local configuration file

2006-12-08 Thread themanfrombucharest
Hi Felix, Take a look at app/config/bootstrap.php. This is the application specific bootstrap that gets called after cake's own bootstrap (it's all in the comments) so you can use it to include everything you need. You'll probably do something like: if (file_exists(ROOT . 'myconfig.php')) {

Re: Setting a variable for beforeFilter to catch?

2006-11-09 Thread themanfrombucharest
If I understood your explanation right then this is what happens: the beforeFilter() method gets called before your action method so $this-locked isn't set yet! you could try to have a special class var for your controller that stores the locked actions: class EntriesController extends