Re: Separating modules

2011-01-14 Thread earth
If i group controllers and models in sub-folders as you suggested - /app/models/events/event.php /app/controllers/poll/polls_controller.php etc. what would be the URL structure, if i used /app/controllers/ polls_controller.php, URL would be like http://www.domain.com/polls. Will it be http://www.

Re: sitemap.xml route not working

2011-01-14 Thread Dr. Tarique Sani
> Does not seem very intuitive to me though, but i guess that behavior > is intended? parseExtensions parses the extension out - so I guess it is the intended behavior Cheers Tarique -- = Cheesecake-Photoblog: http://cheesecake-photob

error ??

2011-01-14 Thread chris...@yahoo.com
Hi guys, getting error on first attempt to access the user page,... after all,... refresh,... it getting thru and working... why...? Did anyone know why...? Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 311296 bytes) in /home/zipmaniak/zippopeople.com/html/app/ vie

How would you solve this problem?

2011-01-14 Thread Adam
Disclaimer: I can't program. Every morning I gather the same information off the internet for my job. My organization insists on having this information in a powerpoint presentation form, but the hour a day spent compiling it is really killing me. I might as well be typing it out and sending e

Re: Error Call to undefined method Debugger::checkSecurityKeys() when installing Cake

2011-01-14 Thread laduree
Adding a static declaration to the checkSecurityKeys() method got rid of that error (I know the cake libs shouldn't be edited, but I am doing so only to get to the root of the problem). New errors just kept appearing though, and switching, for example, from echo $this->Html- >charset(); to echo $ht

Re: External http:// link request by render() in controller

2011-01-14 Thread cricket
On Fri, Jan 14, 2011 at 6:33 PM, dtemes wrote: > you can also use curl to get the external page raw contents, but you > are going to have issues with formating and css, an iframe as proposed > by cricket is the easyest option I can think off. That was Ryan who suggested an iframe. I'd been thinki

RE: Server Preference?

2011-01-14 Thread Dave Maharaj
Ohh yes that’s what I do. I just flipped a view > source and noticed it. I don’t usually look at the rendered code thru browser. Developer tools for each browser for that stuff. Just something I noticed. Thanks,, Dave -Original Message- From: gremlin [mailto:abba.bry...@gmail.com] Sent:

Re: Server Preference?

2011-01-14 Thread gremlin
Use firebug / Safari inspector / Chrome inspector View source is the tool of last resort - I honestly haven't hit view source in a decent browser for years now. On Jan 14, 12:05 pm, "Dave Maharaj" wrote: > Thanks Miles. > > I am sure any of the servers would work fine but each has its strengths,

Re: External http:// link request by render() in controller

2011-01-14 Thread dtemes
you can also use curl to get the external page raw contents, but you are going to have issues with formating and css, an iframe as proposed by cricket is the easyest option I can think off. A nicer solution would be rendering the external page into an image and using that image. It can be scaled t

Re: Separating modules

2011-01-14 Thread majna
You can group controllers and models in sub-folders like /app/models/events/event.php /app/controllers/poll/polls_controller.php etc. just clear cache. and for views, there's Controller::viewPath property I suggest plugins for solution. On Jan 14, 3:27 pm, earth wrote: > Hello, > > I would lik

Re: how to use transactions in cakephp

2011-01-14 Thread Larry E. Masters
Nice constructive criticism. You leave a comment for the user who submitted the video? I am sure he would take your suggestions and use them for another video, he might even suggest you do one yourself and submit it to help the community learn. -- Larry E. Masters On Jan 14, 2011, at 16:44, Ryan

Re: how to use transactions in cakephp

2011-01-14 Thread Ryan Schmidt
On Jan 12, 2011, at 04:58, Larry E. Masters wrote: > I just noticed this thread. You might want to look at a video someone > uploaded to http://tv.cakephp.org recently showing how to use transactions > with CakePHP > > http://tv.cakephp.org/video/guille1983/2011/01/10/database_transactions Un

RE: Server Preference?

2011-01-14 Thread Dave Maharaj
Thanks Miles. I am sure any of the servers would work fine but each has its strengths, weaknesses and depending on the app and its functionality I figured there would be a better to go with one over another. The site is still being built so I am testing it on different server builds to test thin

Re: Plugin tutorial in the book

2011-01-14 Thread Parris
I was using an example... It has this: // /app/plugins/pizza/models/example_model.php: class ExampleModel extends PizzaAppModel { var $name = 'ExampleModel'; var $hasMany = array('Pizza.PizzaOrder'); } ?> Buttt, which breaks some automagic stuff. I've found that changing the abov

Media Plugin options

2011-01-14 Thread Foroct
I'm upgrading to the latest version of David Persson's media plugin. Its working but with this version when I attach an image file the dirname field in my DB gets populated with "img" and my filtered images end up in /media/filter/size/img/ (where size=s,m or l) What I would like is for the filter

Re: Server Preference?

2011-01-14 Thread Miles J
Nginx is fast in general, who ever said it was for static content? I use Nginx with memcache/apc and get a good 10k hits a day with no speed penalty. Want kind of traffic are you expecting where none of these would suffice? Even the largest of sites use apache. On Jan 14, 2:29 am, "Dave Maharaj"

Urgent Need@@@@@@QA Tester

2011-01-14 Thread sangeetha
Hi Friends, Hope you are doing Good!!! If anyone interested please send updated resumes to* **h...@ksolinc.net* My Name is Sangeetha and i am working from Ksolinc.We have an urgent requirement with our Direct client. Below is the job description. *Position : QA Tester Location:

Re: CakePHP 1.3 : language routing through url ?

2011-01-14 Thread cricket
On Fri, Jan 14, 2011 at 3:44 AM, Erik_V wrote: > Dr Loboto, > > Thank you; your suggestion is exactly what I've been using upto now. > This seems this has one serious drawback: I have to add a $this- >>params['language'] to each cake generated link. > It breaks the automagically generated links an

Re: CakePHP 1.3 : language routing through url ?

2011-01-14 Thread Dr. Loboto
If you don't want a lot of work you can simply hack Router::url() and add current language to every URL except prefixed ones. Unfortunately there is no way to override this method (at least in 1.2). Prefixed route will always add prefix to called action, that's why I never ever thought about using

Re: Separating modules

2011-01-14 Thread Jamie
You should probably read the plugins section of the Cookbook: http://book.cakephp.org/view//Plugins - Jamie On Jan 14, 6:27 am, earth wrote: > Hello, > > I would like to create a cakePHP application having different modules > like - Events, Poll, etc. > Each module will have more than one

Re: Separating modules

2011-01-14 Thread cricket
On Fri, Jan 14, 2011 at 9:27 AM, earth wrote: > Hello, > > I would like to create a cakePHP application having different modules > like - Events, Poll, etc. > Each module will have more than one database tables. > Each module may have more than one controller. > > So i want to have a separate fold

Auth flash errors appearing in IE when not expected

2011-01-14 Thread chris
Hi I'm developing an application which uses the auth component to do user login etc. All seems to work fine, I am using the 'controller' based authorization, and using isAuthorized() in the appcontroller and other controllers. The problem I have only seems to happen in IE. Version 7 is the one I

Re: sitemap.xml route not working

2011-01-14 Thread Tijs
Ok, that did indeed point me in the right direction thanks! I was using Router::parseExtensions('xml'); in my routes.php which wasn't working so i changed that to Router::parseExtensions(); and now it works like a charm. Does not seem very intuitive to me though, but i guess that behavior is inte

Re: sitemap.xml route not working

2011-01-14 Thread Dr. Tarique Sani
http://api13.cakephp.org/class/router#method-RouterparseExtensions Is of any help? Cheers Tarique On Fri, Jan 14, 2011 at 7:05 PM, Tijs wrote: > I've setup a basic generated sitemap following all the basic steps of: > > 1) creating a file method in sitemaps_controller.php hat generates the > si

Update array in database cakephp

2011-01-14 Thread NOOOOB
So i Have an array that looks like this: [0] => Array ( [image] => http://images0.jpg [title] => ) [1] => Array ( [image] => http://image1.jpg [title] => ) [2] => Array ( [image] => http://image2.jpg [title] => ) And I s

Plugins

2011-01-14 Thread earth
Hello, Is their any cakePHP plugin for Authorize.net (AIM method) and iTransact payment gateways. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP"

Separating modules

2011-01-14 Thread earth
Hello, I would like to create a cakePHP application having different modules like - Events, Poll, etc. Each module will have more than one database tables. Each module may have more than one controller. So i want to have a separate folder for each module within models folder, like - /app/models/e

sitemap.xml route not working

2011-01-14 Thread Tijs
I've setup a basic generated sitemap following all the basic steps of: 1) creating a file method in sitemaps_controller.php hat generates the sitemap 2) making sure requestHandler is loaded 3) added parseExtensions to the router config 4) created a /layouts/xml/default.ctp 5) created a /views/site

Error Call to undefined method Debugger::checkSecurityKeys() when installing Cake

2011-01-14 Thread laduree
I have been stuck with this for a few days already, and really hope you could help me. I am trying to install CakePHP on a shared hosting account at HostGator and after defining path constants at index.php in webroot I get the following when accessing my website: Sweet, "mytestapp" got Baked by Ca

Re: Clueless...Help please

2011-01-14 Thread javier0051
Hi AD7 I actually downloaded the whole site, without leaving behind the old folders, I mean the folder and file layout is exactly the same. I'm not getting paid to move the site but I usually try to be helpful to customers and in this case it's a friend's site and I don't want to leave him stuck w

Re: it's not suitable for deep hyraphical structured system

2011-01-14 Thread Dr. Tarique Sani
Well said Jeremy @cake-learner - I would further like to add that you should learn a bit more about nested tree sets (an SQL topic) and hybrid trees. Don't give up so easily :-) Cheers Tarique On Fri, Jan 14, 2011 at 4:44 PM, Jeremy Burns | Class Outfit wrote: > CakePHP can adequately handle a

Re: it's not suitable for deep hyraphical structured system

2011-01-14 Thread Jeremy Burns | Class Outfit
CakePHP can adequately handle a hierarchy as many levels deep as you like using the Tree behaviour (http://book.cakephp.org/view/1339/Tree). Then it's up to you and your form building skills to create a mechanism to manage the tree. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://w

Server Preference?

2011-01-14 Thread Dave Maharaj
I am trying to get the best suited server going for my app I am building and so far >From what I read: . Apache seems to be the dead horse / big and clumsy . Lighttpd is not as supported / updated as it once was . Nginx is fast with static content . Cher

it's not suitable for deep hyraphical structured system

2011-01-14 Thread cake-learner
I am feeling that cakephp is not suitable for system with data which describes deep hierarchical structure? things like deeling with big corporate organization map? I tested It only supports structure with 2/3 level deep when generating the form. It might be possible but takes more time to develop

Test protected methods (PHP5) in SimpleTest? --psybear

2011-01-14 Thread psybear83
Hey everybody I'm currently writing a library for a CakePHP projekt, and I'm using the new PHP5 OOP features like protected methods. Now I'd like to be able to test them, but I don't know how to do it because I can't access them from within a SimpleTest file. My dirty solution would be to just s

Re: How to implement CakePhp in an external site?

2011-01-14 Thread Axel
I think I've got the stuff. This way of thinking of MVC is not easily understandable from Cake tutorials IMHO. So thank you for that explanation. I just have one extra question : How can I call a cake'd stuff (like something I got from a view) in external files - that can be put indside of cake fo

Re: Off Topic Question

2011-01-14 Thread Joshua Muheim
Some time ago, I looked into this web stress tool: http://www.paessler.com/webstress Quite nice, but I don't have much experience with stress testing, so I can't tell you whether it is a very good solution. On Fri, Jan 14, 2011 at 2:08 AM, Dave Maharaj wrote: > Not so much related to Cake but I

Re: CakePHP 1.3 : language routing through url ?

2011-01-14 Thread Erik_V
Dr Loboto, Thank you; your suggestion is exactly what I've been using upto now. This seems this has one serious drawback: I have to add a $this- >params['language'] to each cake generated link. It breaks the automagically generated links and adds a lot of work; or perhaps I missing something? I w

Re: ACL for cakephp 1.3

2011-01-14 Thread jsalonen
Hope this helps: http://jsalonen.com/2010/10/role-based-acl-in-cakephp/ Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this gro

Re: newbie question on custom function

2011-01-14 Thread jsalonen
> So how do I call the function within the same class You'd use $this->multiexplode(...), but if it is just a simple function that doesn't need to maintain state you could just define it as a regular PHP function in bootstrap.php.nor Check out the new CakePHP Questions site http://cakeqs.org a

Re: CakePHP + memcached weird results

2011-01-14 Thread Adrian Arnautu
Hi to all, The CakePHP dev team was kind enough to work around this issue, a fix was added, here's the commit https://github.com/cakephp/cakephp/commit/5f612b78336547b921237da6018ba80db303d188 Thanks guys and thank you Andy, Adrian On Thu, Jan 13, 2011 at 2:54 PM, Adrian Arnautu wrote: > Hi An