Re: $this-html-link not changing location

2012-09-27 Thread Dakota
You should always use the array format for urls ( http://book.cakephp.org/2.0/en/appendices/glossary.html#term-routing-array ), otherwise the Router has a difficult time finding the correct route. Also, the routes in your routes.php file are parsed in the order that they are declared. So if

Re: function beforeFilter

2012-09-27 Thread euromark
jeremy: that would not only be too easy, it would also reduce the method to zero lines and make it removable alltogether clearly not a good idea ;) gosh I just saw too much Southpark S16E08 and Sarcastaball..^^ Am Mittwoch, 26. September 2012 14:45:34 UTC+2 schrieb Jeremy Burns: Why not

Re: function beforeFilter

2012-09-27 Thread Jeremy Burns | Class Outfit
Stupid me. What a bad idea. I have SO much to learn! ;-) Jeremy Burns Class Outfit http://www.classoutfit.com On 27 Sep 2012, at 10:16:01, euromark dereurom...@gmail.com wrote: jeremy: that would not only be too easy, it would also reduce the method to zero lines and make it removable

Re: Urgent, we need a CakePHP developer.

2012-09-27 Thread Florian Krämer
Contact http://www.cakedc.com/ if you're interested in professional services. On Thursday, August 23, 2012 6:49:15 PM UTC+2, Saiful Siddique wrote: We are a Tel Co based software development firm. We need a php coder who understand CakePHP. Thanks Shimul Mark Tech. Bangla Motor, Dhaka.

Re: tricky HABTM condition (or maybe situation where multi-column foreign key is needed)

2012-09-27 Thread Carl Clements
On Monday, September 24, 2012 3:30:01 PM UTC-4, cricket wrote: Wasn't there an episode of Laverne Shirley in which Fonzi appeared? Touche. So my example isn't perfect. Although, if I were actually implementing this, I would probably handle that exception by making another Fonzi for LS

Hello i need help in database schema ready

2012-09-27 Thread Peter Nassef
Hello cakephp member i need table content all country and all cities relate to this countries and other table content units measurement and Thanks :) -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because

Re: Hello i need help in database schema ready

2012-09-27 Thread Maliko V
Can you elaborate what do you need exactly? Us to show you how u create this schema or model using bake ? VM Sent from iPhone smartphone On 2012-09-27, at 11:02 AM, Peter Nassef peter.nas...@gmail.com wrote: Hello cakephp member i need table content all country and all cities relate to

Re: Hello i need help in database schema ready

2012-09-27 Thread Jonathan Sundquist
I don't know how likely you will find a country and all cities within each specific country. You are more likely to find database schemas out there that give you countries with all related states/provinces within. On Thu, Sep 27, 2012 at 10:08 AM, Maliko V malikovinc...@gmail.com wrote: Can

Is this a mod_rewrite issue?

2012-09-27 Thread Paul Willis
Hi I can't get a brand new CakePHP installation working on a customer's server. The details of what is going on are below, including everything I've tried, but my conclusion is that it is probably something as simple as AllowOverride isn't set to 'all'. The guys who run the server only take

Typo in the footer of these messages

2012-09-27 Thread Paul Willis
I'm not sure who the admin is for this group but I just noticed that there's a typo: FacekBook just below in the auto added footer to messages to this group VVV -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You

Re: Hello i need help in database schema ready

2012-09-27 Thread Peter Nassef
i need three table .sql content First: All Countries Secound: All Cities Related to Countries Third :Units Measurement On Thu, Sep 27, 2012 at 5:08 PM, Maliko V malikovinc...@gmail.com wrote: Can you elaborate what do you need exactly? Us to show you how u create this schema or model using

Re: Is this a mod_rewrite issue?

2012-09-27 Thread Ivan Rimac
I had similar issue. You can try enter this into app/.htaccess file IfModule mod_rewrite.c RewriteEngine on RewriteBase / RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] /IfModule And check if there is on your Auth component allowed to display home page.

Re: Hello i need help in database schema ready

2012-09-27 Thread Jonathan Sundquist
I guess I question what you would like this data set for. Looking at this from a large scale of the United States I know there are a number of city names that are duplicated across multiple states. Now I don't know if this is the same across the rest of the world but you may need to rethink what

Re: Hello i need help in database schema ready

2012-09-27 Thread Paul Willis
I agree knowing what the dataset is for might help with the answer. I don't know but I would have thought Units of Measurement are set per Country rather than by City? Paul On 27 Sep 2012, at 16:44, Jonathan Sundquist jsundqu...@gmail.com wrote: I guess I question what you would like this

Re: Is this a mod_rewrite issue?

2012-09-27 Thread Paul Willis
I tried editing my .htaccess in domain.com/oursite/caketest/ but it made no difference. Are your other two .htaccess files set to the default without RewriteBase being set? Paul On 27 Sep 2012, at 16:38, Ivan Rimac ivn...@gmail.com wrote: I had similar issue. You can try enter this into

Re: Is this a mod_rewrite issue?

2012-09-27 Thread Ivan Rimac
Okay, this is my structure: domain.com/.htaccess IfModule mod_rewrite.c RewriteEngine on RewriteBase / RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] /IfModule domain.com/app/.htaccess IfModule mod_rewrite.c RewriteEngine on RewriteBase /app/

Re: Is this a mod_rewrite issue?

2012-09-27 Thread Paul Willis
Okay, thanks for that. Unfortunately it doesn't fix my issue. Your setup is slightly different as you have your domain pointing to the root folder of your cake folder. That is usually how I have mine set up when I am controlling the server. However in this case on someone else's server I'm in a

Re: Is this a mod_rewrite issue?

2012-09-27 Thread Ivan Rimac
I think it is rewriting problem, try something like this: http://docs.joomla.org/How_to_check_if_mod_rewrite_is_enabled_on_your_server If it is not, there's your problem :-) and if it is on, then you should google around for setting up .htaccess files and in what way to modify them.

Re: Is this a mod_rewrite issue?

2012-09-27 Thread Paul Willis
Unfortunately the quick tests in the link you provided require access to the server root (even if your site is in a subfolder), but I only have access to my subdirectory (and anything within that). I'll chase the web hosts now. However the quick test will be useful once they set AllowOverride

Re: Is this a mod_rewrite issue?

2012-09-27 Thread Paul Willis
Okay scrap that. I realised I was making a mistake with my test. I tried again and got redirected to the external site as per my .htaccess rule so I guess AllowOverride must be set to All? So it does look like I need to figure out the issue in my .htaccess files for Cake Paul On 27 Sep

Re: Is this a mod_rewrite issue?

2012-09-27 Thread Paul Willis
Success! It was indeed a matter of setting the RewriteBase path properly. I'm now seeing my default CakePHP page with CSS. This is what I ended up with... domain.com/oursite/caketest/.htaccess IfModule mod_rewrite.c RewriteEngine on RewriteBase /oursite/caketest RewriteRule^$

Re: cakephp 2.2.2

2012-09-27 Thread Pietro Brignola
I'm using a CAS server (latest version) and after a valid authentication the session is lost. This is my work around in the login method that invokes the CAS server (i really don't like very much): call a $this-Session-destroy(); to start a new cake session... It works...but it's not cool...

Plugin assets not loading in production server

2012-09-27 Thread Xoubaman
The app is working with no issue in the development server (Windows), but not loading the plugin assets in production server (Linux). I get a controller not found error in each one. Some things I have out of a clean app or may be useful to know: - Plugins can be placed in Plugin folder or

Re: Router::redirect problem dynamic html redirects using routers

2012-09-27 Thread arron
I couldn’t get my class to work so i did this in the router.php file I am pretty sure there is another way. If anyone has a solution i would appreciate it $move='category/'. stripslashes_deep ($_SERVER['REQUEST_URI']); Router::redirect('/:slug/*',$move, array('status' = 302)); On Wednesday,

Re: Sessions expiring when they should not

2012-09-27 Thread Chris Cinelli
BTW, another problem of setting the cookie in 6 hours is that if the user has a clock that is not synced (i.e. more than 6 hours ahead), the browser will expire the session cookie and the user cannot stay logged in. Best, Chris On Tue, Sep 4, 2012 at 3:07 PM, Chris Cinelli

link to username from view

2012-09-27 Thread Chris
hi guys,... sound like a stupid question,... but how can I link to this user username from view ?php echo $html-link(ucfirst(__('Profile', true)), '/profile/' . $this-user['username']) ? ??? thanks -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter

Re: link to username from view

2012-09-27 Thread Chris
OK,... I got It ,... THANKS On Thursday, September 27, 2012 4:00:15 PM UTC-7, Chris wrote: hi guys,... sound like a stupid question,... but how can I link to this user username from view ?php echo $html-link(ucfirst(__('Profile', true)), '/profile/' . $this-user['username']) ? ???

Re: Plugin assets not loading in production server

2012-09-27 Thread chronon
If you are using Cake 2.2.x, do you have this in your bootstrap.php? Configure::write('Dispatcher.filters', array( 'AssetDispatcher', 'CacheDispatcher')); See http://book.cakephp.org/2.0/en/appendices/2-2-migration-guide.html for more info... On Thursday, September 27, 2012 12:48:05 PM

Ajax paging in cake php

2012-09-27 Thread Bharat Maheshwari
Controller Code :- $this-set('products', $this-paginate('Product', $condition)); if ($this-request-is('ajax')) { //Configure:write('debug', 0); $this-layout = ''; $this-viewPath = 'Elements' . DS . 'admin/products';