how do i customize a error404 for themes?

2011-03-22 Thread Zeu5
Hi, i am currently using http://github.com/m3nt0r/cakephp-twig-view plugin for theming issues. Long story short, instead of using CakePHP CTP views, this plugin allows me to use Twig a templating language like Smarty. It works great. All I need is to do a $this->render('filename'); it will r

Re: Please. I need help with ACL. I no understand one thing about restriction in ACL. Can somebody help me?

2011-03-22 Thread John Maxim
Then there must be something you were not doing right. Basically, first, you deny access to all controllers from anybody/any group. Then usually, you make/give permission to the admin so they have access to all controllers. It then follows by the other groups which you assign them permissions. Thi

Re: CakeDC users plugin

2011-03-22 Thread Zaky Katalan-Ezra
Also in the users index view the edit and view buttons next to each users pass the user id when view is looking for slug parameter and edit need no parameter at all. Looks like a sloppy work. But still great plug-in with a bit of work it should be great. I set my user is_admin=1 but after login I

Re: Bug when using ClassRegistry::init for Components

2011-03-22 Thread euromark
i usually use App::import('Component', 'Plugin.Something'); and manually create a new object On 23 Mrz., 00:35, labianchin wrote: > Hi, guys. > > I pretend to load and initialize a component (e.g. > SomethingComponent), so I use something like: > ClassRegistry::init('Plugin.Something', 'Componen

Bug when using ClassRegistry::init for Components

2011-03-22 Thread labianchin
Hi, guys. I pretend to load and initialize a component (e.g. SomethingComponent), so I use something like: ClassRegistry::init('Plugin.Something', 'Component') The problem is that as in the line 140 of the file class-registry (http://api.cakephp.org/view_source/class-registry/#line-99) we have

Re: Performance of CakePHP 2.0

2011-03-22 Thread euromark
on windows there are some terrible "performance losses" with the Folder class other than that its probably app related - would be my guess On 22 Mrz., 21:15, mark_story wrote: > I don't think many people have done extensive benchmarking of 2.0 > against 1.3.  I've done a bit myself, and there we

Re: CakeDC users plugin

2011-03-22 Thread Sam Sherlock
nope only migrations and schema https://github.com/CakeDC/users/tree/master/config/ and to me it would make more sense if register mapped to add On 22 March 2011 22:35, gremlin wrote: > Just a guess - is there a routes file in the plugin that you didn't > copy over to your config/routes.php? A

Re: CakeDC users plugin

2011-03-22 Thread gremlin
Just a guess - is there a routes file in the plugin that you didn't copy over to your config/routes.php? A route mapped from /users/add to /users/register would make sense for this sort of error. On Mar 22, 10:15 am, Ryan Schmidt wrote: > Perhaps I should be asking: is there a tutorial somewhere

Re: cache action not working

2011-03-22 Thread gremlin
Do you have debug set to 0? If you are seeing the query log then you likely don't and with a setting of anything higher than 0 the cache is cleared on each call to the action. On Mar 22, 2:27 pm, "André von Arx" wrote: > I've tried to cache a controller action without success. > > Here are the s

Re: Performance of CakePHP 2.0

2011-03-22 Thread mark_story
I don't think many people have done extensive benchmarking of 2.0 against 1.3. I've done a bit myself, and there were some speed gains, but at the same time trying to build an application against an unstable code base is usually a bad idea. Have you done any profiling to find out what specificall

Re: login and register system

2011-03-22 Thread Robert Bodley
thanks* On Tue, Mar 22, 2011 at 9:24 PM, Robert Bodley wrote: > kk i will thaks > > > On Tue, Mar 22, 2011 at 9:07 PM, huoxito wrote: > >> i believe it would be best for you to read the cakephp manual at first and >> only after that try plugins > > > -- Our newest site for the community: CakeP

Re: login and register system

2011-03-22 Thread Robert Bodley
kk i will thaks On Tue, Mar 22, 2011 at 9:07 PM, huoxito wrote: > i believe it would be best for you to read the cakephp manual at first and > only after that try plugins -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions s

Re: login and register system

2011-03-22 Thread huoxito
i believe it would be best for you to read the cakephp manual at first and only after that try plugins -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP relate

RE: On your journeys

2011-03-22 Thread Krissy Masters
LOL. right on! Thanks man. K -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsu

cache action not working

2011-03-22 Thread André von Arx
I've tried to cache a controller action without success. Here are the settings I've used for cakephp 1.3.7: === core.php: Cache::config('default', array( 'engine' => 'File', // required 'duration'=> 3600, // optional 'probability'=> 100, // opt 'path' => '/us

Re: route being ignored

2011-03-22 Thread cricket
On Tue, Mar 22, 2011 at 6:44 AM, AD7six wrote: > > You're mixing things up, where you are in your app is contextually > relevant - the prefix (and the admin key) if you don't change it > persists from whatever the value is for the current request. You're > apparently testing from an /admin/ url. Y

Re: On your journeys

2011-03-22 Thread Sam Sherlock
If I understand you then blockui can do what you want http://jquery.malsup.com/block/#element - S On 22 March 2011 14:16, Krissy Masters wrote: > Has anyone ever come across or seen a jquery plugin / script / that does > the opposite of “Expose” in jquery.tools. > > I have a few forms in my

Re: CakeDC users plugin

2011-03-22 Thread Sam Sherlock
A few other things strike me as odd with the users plugin (I can't recall what they are just now; not currently at my machine) If there's not supposed to be an add action, then why does > plugins/users/views/details/ > add.ctp echo $this->Html->link(__d('users', 'New User', true), > array('control

Re: setting up cakephp HELP please

2011-03-22 Thread Tilen Majerle
http://book.cakephp.org/view/898/A-Typical-CakePHP-Request -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/3/22 Robert Bodley > Hi everyone > > im new to cake and i set up cake with all the thing required and that > all right (i watched a few youtube videos) but when i put a bit of php >

setting up cakephp HELP please

2011-03-22 Thread Robert Bodley
Hi everyone im new to cake and i set up cake with all the thing required and that all right (i watched a few youtube videos) but when i put a bit of php like and save it as a test.ctp in the folder views it always comes up with this error when i try and view it on the localhost (Missing Control

setting up cakephp HELP please

2011-03-22 Thread Robert Bodley
Hi everyone im new to cake and i set up cake with all the thing required and that all right (i watched a few youtube videos) but when i put a bit of php like and save it as a test.ctp in the folder views it always comes up with this error when i try and view it on the localhost (Missing Control

Re: CakeDC users plugin

2011-03-22 Thread Ryan Schmidt
Perhaps I should be asking: is there a tutorial somewhere that will show me how to use the users plugin -- starting from creating a new empty CakePHP app ending with a working example? The readme says it's simple to use, but I am not finding it so, and I don't seem to be the only one having trou

Re: CakeDC users plugin

2011-03-22 Thread Ryan Schmidt
On Mar 22, 2011, at 11:54, Sam Sherlock wrote: > On 22 March 2011 16:42, Ryan Schmidt wrote: >> Accessing www.example.com/users shows me the plugin's list of users page, >> empty. There's a New User button which, when clicked, loads >> www.example.com/users/users/add, which says: >> >> Error: Th

Re: CakeDC users plugin

2011-03-22 Thread Sam Sherlock
the CakeDC plugin uses register you could make the route users/add connect to the register action of the plugin - S On 22 March 2011 16:42, Ryan Schmidt wrote: > I'm trying to add the CakeDC users plugin to my site. I've been postponing > adding user login functionality, knowing I'd want to

Post-processing HTML

2011-03-22 Thread Ryan Schmidt
I want to post-process the HTML generated by any view of my CakePHP app, before it's displayed on each page. At the moment, it doesn't matter to me whether I process just the content of the view, or the content composed into the layout. I'm not using caching yet, but it seems that ideally, I wou

CakeDC users plugin

2011-03-22 Thread Ryan Schmidt
I'm trying to add the CakeDC users plugin to my site. I've been postponing adding user login functionality, knowing I'd want to use this plugin. I've put the latest versions of the users, search and utils plugins into the plugins folder. I moved aside my existing users table, user model, users v

Re: i18n and Google Indexing Problem - Google only indexes default language

2011-03-22 Thread DigitalDude
Hey, yeah I did exactly this, the language code will set the default language of the app to the given code. So when poniting Google to www.domain.com/it it should find the whole app in the italian locale and index its content correctly. Now I'll have to wait until the Robot comes back around to i

Re: UE Cookie Directive and CakePHP

2011-03-22 Thread AD7six
On Mar 22, 1:51 pm, byqsri wrote: > I know that Yahoo has already provided an opt-out I don't see how an opt OUT option can address anything related to the specific EU directive. The whole point of the directive is that you can't use cookies without explicit user consent. > button from its sit

Re: Performance of CakePHP 2.0

2011-03-22 Thread Ziki
We are now still in developing phase, we do not have users. Maybe for 2 months it will be in beta version. Do you have any experience in 2.0 performance? On 22 ožu, 14:40, Stephen wrote: > Not quite about speed, but I wouldn't really switch to 2.0 until it's stable > and officially released - esp

Re: i18n and Google Indexing Problem - Google only indexes default language

2011-03-22 Thread Ryan Schmidt
On Mar 22, 2011, at 09:02, DigitalDude wrote: > when entering the url www.domain.com/it, the default language and all > other language depending variables are set to italian. when entering > www.domain.com/es you'll have the same behaviour for spanish. Maybe > that will help the Google Bot indexi

Re: i18n and Google Indexing Problem - Google only indexes default language

2011-03-22 Thread DigitalDude
Hey, ok for now I did the following: when entering the url www.domain.com/it, the default language and all other language depending variables are set to italian. when entering www.domain.com/es you'll have the same behaviour for spanish. Maybe that will help the Google Bot indexing all other lan

Re: i18n and Google Indexing Problem - Google only indexes default language

2011-03-22 Thread Ryan Schmidt
On Mar 22, 2011, at 08:16, DigitalDude wrote: > half an hour ago I implemented a redirect to a link with the language > code based on the session language when no language code is given by > the url. So instead of displaying the view for www.domain.com, I check > in the controller if a language is

Re: Performance of CakePHP 2.0

2011-03-22 Thread Stephen
Not quite about speed, but I wouldn't really switch to 2.0 until it's stable and officially released - especially if your website contains a large amount of users On 22 March 2011 13:19, Ziki wrote: > Hi, > > I am developing complex website (business and social network) with > 1.3.6 version and

Re: i'm newbie

2011-03-22 Thread Ryan Schmidt
On Mar 22, 2011, at 08:43, Robert Bodley wrote: > Hi I'm also a Newbie can someone please expain how the function pages > work iv scene other peoples code and they have a file with all > function for the index page and all the pages can someone please > explain how this works thanks Sounds like

Re: i'm newbie

2011-03-22 Thread mikek
> Hi I'm also a Newbie can someone please expain how the function pages > work iv scene other peoples code and they have a file with all > function for the index page and all the pages can someone please > explain how this works thanks you might want to look at the cake book. http://book.cakephp.

Re: Number helper breaking a layout

2011-03-22 Thread Jeremy Burns | Class Outfit
I just posted that this is probably true as I am using the Debug Toolkit. But if that - and that alone - were the case, wouldn't I still see the output of the default layout when debug = 0? I'm not seeing any headers or anything set in the default layout. Jeremy Burns Class Outfit jeremybu...@

Re: i'm newbie

2011-03-22 Thread Robert Bodley
Hi I'm also a Newbie can someone please expain how the function pages work iv scene other peoples code and they have a file with all function for the index page and all the pages can someone please explain how this works thanks On Mar 22, 3:34 pm, Stephen wrote: > *Create:* > /app/views/pages/hel

Re: Number helper breaking a layout

2011-03-22 Thread euromark
maybe some debug script internally uses the helper if debug is off the debug part is not called, therefore no helper On 22 Mrz., 14:14, Jeremy Burns wrote: > I have this (simplified) line of code in a view: > > echo $this->Number->format($data['distance'], array('places' => 1, > 'before' => ''))

Re: Number helper breaking a layout

2011-03-22 Thread Jeremy Burns | Class Outfit
One further thought...I am using the Debug Toolkit which does include the Number helper, which might explain why it doesn't error when debug > 0, but still doesn't explain the broken view. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 22 Mar 2011, at 13:14

Re: i'm newbie

2011-03-22 Thread Stephen
*Create:* /app/views/pages/helloworld*.ctp* (not .html) *Visit:* http://localhost/pages/helloworld On 22 March 2011 02:11, aji ipank wrote: > Hello all.. I want to learn about cakephp.. i've installed cakephp and > no problem at all.. but now, i have one problem. i make hello world > html file

Please. I need help with ACL. I no understand one thing about restriction in ACL. Can somebody help me?

2011-03-22 Thread mineiro-df
I'm new cake student and i have problem with ACL on this moment. I managed to make the simple system of limited access of the book of the cake put that I realized an interesting thing. The user who has less is accessed by me to the system in fact it manages to do everything if I to work with the u

i'm newbie

2011-03-22 Thread aji ipank
Hello all.. I want to learn about cakephp.. i've installed cakephp and no problem at all.. but now, i have one problem. i make hello world html file and i put it into app/views/pages. then i load it via localhost, but no hello world in my browser. can you help me? what was wrong? reply please.. --

Performance of CakePHP 2.0

2011-03-22 Thread Ziki
Hi, I am developing complex website (business and social network) with 1.3.6 version and it is pretty slow, maybe it is because my server and I did all tips and tricks (lazy loader, APC caching, caching queries, views) but generally it is slow and use more memory especially on the loading cake fil

Re: i18n and Google Indexing Problem - Google only indexes default language

2011-03-22 Thread DigitalDude
Hey Ryan, half an hour ago I implemented a redirect to a link with the language code based on the session language when no language code is given by the url. So instead of displaying the view for www.domain.com, I check in the controller if a language is given by a passed-argument and if not, I r

Number helper breaking a layout

2011-03-22 Thread Jeremy Burns
I have this (simplified) line of code in a view: echo $this->Number->format($data['distance'], array('places' => 1, 'before' => '')); ...which works fine when debug is > 0. When debug is set to 0, the view renders but without a layout (almost as if inside a bare ajax layout, but this is not the c

Re: cakephp-wizard Redirect Loop

2011-03-22 Thread Ryan Schmidt
On Mar 22, 2011, at 07:46, grady wrote: > The author of the tutorial you referenced mentioned submitting the form to > itself using 'url' => $this->here for the form created. This doesn't work > for me due to the following behavior: > > Page the form is on: > http://localhost/cakebox/create/w

Re: i18n and Google Indexing Problem - Google only indexes default language

2011-03-22 Thread Ryan Schmidt
On Mar 22, 2011, at 07:49, AD7six wrote: > On Mar 22, 1:45 pm, DigitalDude wrote: >> The app runs with i18n for 4 different languages. I set the language >> per Session. First, the session language is determined by checking the >> browsers language. if no matching language is found, the default >>

Re: i18n and Google Indexing Problem - Google only indexes default language

2011-03-22 Thread DigitalDude
Hey, yeah I know the articles around i18n and the internal structure for this is correct in my app i think, I can't find anything on how to setup an application for correct indexing when having multiple languages. But maybe you know something I don't, so maybe you could give me a Tag I should lo

Re: UE Cookie Directive and CakePHP

2011-03-22 Thread byqsri
I know that Yahoo has already provided an opt-out button from its site to do this. Add this options to CakePHP HTML helper? On 22 Mar, 13:16, AD7six wrote: > On Mar 22, 11:50 am, byqsri wrote: > > > Hi > > I would ask if,when and how CakePHP  will be aligned with the > > directive "Cookie Direct

i18n and Google Indexing Problem - Google only indexes default language

2011-03-22 Thread DigitalDude
Hey, I ran into a really bad problem today with one of my multilingual apps and I have absolutely NO clue how to solve this! First, a slight overview of how my app is structured: The app runs with i18n for 4 different languages. I set the language per Session. First, the session language is dete

Re: i18n and Google Indexing Problem - Google only indexes default language

2011-03-22 Thread AD7six
On Mar 22, 1:45 pm, DigitalDude wrote: > Hey, > > I ran into a really bad problem today with one of my multilingual apps > and I have absolutely NO clue how to solve this! > > First, a slight overview of how my app is structured: > > The app runs with i18n for 4 different languages. I set the la

Re: cakephp-wizard Redirect Loop

2011-03-22 Thread grady
Ah! Stupid mistake, my apologies. Somewhat of a follow-up question though... The author of the tutorial you referenced mentioned submitting the form to itself using 'url' => $this->here for the form created. This doesn't work for me due to the following behavior: Page the form is on: http:/

Re: UE Cookie Directive and CakePHP

2011-03-22 Thread AD7six
On Mar 22, 1:16 pm, AD7six wrote: > On Mar 22, 11:50 am, byqsri wrote: > > > Hi > > I would ask if,when and how CakePHP  will be aligned with the > > directive "Cookie Directive" of UE? > > What is it you're expecting cake to do wrt that directive. > > AD Infact, from http://eur-lex.europa.eu

Re: UE Cookie Directive and CakePHP

2011-03-22 Thread AD7six
On Mar 22, 11:50 am, byqsri wrote: > Hi > I would ask if,when and how CakePHP  will be aligned with the > directive "Cookie Directive" of UE? What is it you're expecting cake to do wrt that directive. AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Ch

Re: UE Cookie Directive and CakePHP

2011-03-22 Thread Ryan Schmidt
On Mar 22, 2011, at 05:50, byqsri wrote: > I would ask if,when and how CakePHP will be aligned with the > directive "Cookie Directive" of UE? I don't do business in the EU, and I had not been aware of the directive. It sounds stupid. I would imagine CakePHP has no code to deal this, nor would

David Persson - Media Plugin - Handing .docx and .xlsx uploads

2011-03-22 Thread designv...@gmail.com
Hi there, Has anyone got any idea how to get the Media Plugin to recognise Office 2007 files correctly? I can upload old .doc files fine and they get put in the 'doc' folder, and don't fail the mime validation rule, but it really doesn't like .docx files.. Any suggestions? d//t -- Our newest

UE Cookie Directive and CakePHP

2011-03-22 Thread byqsri
Hi I would ask if,when and how CakePHP will be aligned with the directive "Cookie Directive" of UE? Thanks Byqsri -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their Cake

Re: route being ignored

2011-03-22 Thread AD7six
On Mar 21, 8:59 pm, cricket wrote: > On Mon, Mar 21, 2011 at 7:14 AM, AD7six wrote: > > > On Mar 20, 9:44 pm, cricket wrote: > >> Using 1.3.7 > > >> Some of my routes are apparently being ignored. > > > Routes don't get ignored, they simply don't match and are skipped. > > I found Router's int

Re: Get Parent's alias

2011-03-22 Thread thom
I know the query, but how I convert it to Cakephp mode? here is my query : SELECT aros_acos.*, acos.alias, acos.parent_id as PID, (SELECT acos.alias FROM acos WHERE acos.id=PID) as parentalias FROM aros_acos, acos WHERE aros_acos.aco_

Get Parent's alias

2011-03-22 Thread thom
I am trying to display aros_acos table. But, I am stucked at how to get parent's alias from acos. I could display alias from current acos, but unable to display the parent. Can anyone help me? I added var $belongsTo to my model, so that the data from another table could be displayed. -- Regard

Re: MySQL Password Hashing

2011-03-22 Thread Ryan Schmidt
On Mar 21, 2011, at 21:07, cricket wrote: > On Mon, Mar 21, 2011 at 8:55 PM, RhythmicDevil wrote: >> PHP: 5.3.5 >> Cake: 1.3.7 >> MySQL: 5.1.47 >> >> So if I understand it right the PHP mysql driver that cake uses does >> not support the password hashes in MySQL, If this is true, what is the >> pr

Re: login and register system

2011-03-22 Thread Zaky Katalan-Ezra
try cakedc users plug-in and you'll get much more. https://github.com/CakeDC/users On Mon, Mar 21, 2011 at 5:06 PM, Robert Bodley wrote: > hi, > > I just started learning php and would like to know if anyone would > like or would help me build a login and register system > > I would like the feat