Simple Acl controlled Application Download?

2009-10-26 Thread xtraorange
Does anyone know if there's somewhere I could download the "Simple Acl controlled Application" tutorial result? I was following through the tutorial, but it got to the point where I was more or less copying and pasting, and I think I'd learn more if I could just read through the completed code an

MySQL Report Queries

2009-10-26 Thread Joseph Roberts
I am having difficulty at work porting old PHP/MySQL reports into a new CakePHP app. One old report consist of three loops in this format: get all departments for each department get all jobs in department for each job sum hours and compute $ value (# hours

Re: Paginator helper in Cake 1.3

2009-10-26 Thread jacmoe
It works for baked index views, also in my upgraded project. It doesn't work for my issues index page, however. And I am not sure what it is.. Maybe the fact that I am paginating related models into the view? Or the fact that I am using custom routes ? I think I'll just learn how to use plain, non

Re: Paginator helper in Cake 1.3

2009-10-26 Thread dijichi
i made sure i did a writeBuffer at the end of my page, but it looks like the paginator javascript is being generated all inline anyhoo. when I click on the paginator link with the $paginator->options set as in your tutorial, nothing happens. when i comment the paginator options out, i just get n

Re: Google Bot deleting my database entries!

2009-10-26 Thread euromark (munich)
you are violating protocol never allow GET recquests to change database no edit, no add, no delete if you (or a bot) access an url always use POST for those actions! then this won't happen besides this, the above solutions could be working work-arounds On 27 Okt., 00:15, Miles J wrote: > It

Re: Google Bot deleting my database entries!

2009-10-26 Thread Miles J
It uses an HTTP authentication mechanism... you know, that thing that happens when your browser prompts your for a login, when you go to something restricted. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP"

Re: Good SVN Deployment Plan for CakePHP

2009-10-26 Thread Jon Bennett
Hi frederic, > You should give try to Fredistrano, http://code.google.com/p/fredistrano/. > > It automates the export of your sources from a subversion repository > and synchronizes them with the content of a target directory. Several > manual tasks are also handled directly by the application du

Re: Good SVN Deployment Plan for CakePHP

2009-10-26 Thread Jonathon Musters
Not if a server is running secure with suphp. Which runs code as the user. Not apches set user On 10/26/09, Sergio Pola wrote: > > You must be aware in the checkout that the user who own the file is > apache if you run a php script. > > On Oct 26, 3:28 am, frederic bollon wrote: >> Hi Jeremy

Re: Google Bot deleting my database entries!

2009-10-26 Thread audioworld
Thanks, Miles: At the moment it is not completely clear to me how this is different from my way of authentication, but I will read an learn.. On 26 Okt., 22:50, Miles J wrote: > You should use HTTP authentication. > > http://book.cakephp.org/view/473/Basic-HTTP-Authentication > > On Oct 26, 2:44

Re: Errors on nginx + php-fpm, no errors on apache

2009-10-26 Thread Balrog
http://bugs.php.net/bug.php?id=33772 Can it be related to this? is it safe to call session_write_close in afterRender? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send ema

Re: Google Bot deleting my database entries!

2009-10-26 Thread audioworld
Thanks, Gonzalo: I will add the 'exit()' function after the flash message, your thought is very good and welcome! Thanks also, Andras: as a simple fix, I just erased the "delete" actions in all the controllers for all the database tables, and just left the "delete" action for the function admin_d

Re: Google Bot deleting my database entries!

2009-10-26 Thread Miles J
You should use HTTP authentication. http://book.cakephp.org/view/473/Basic-HTTP-Authentication On Oct 26, 2:44 pm, Andras Kende wrote: > Your add action has auth but in your app_controller.php did you add   > any auth for "delete" action too ? > > http://doidata.net/contributor_roles/delete- In

Re: Google Bot deleting my database entries!

2009-10-26 Thread Andras Kende
Your add action has auth but in your app_controller.php did you add any auth for "delete" action too ? http://doidata.net/contributor_roles/delete - Invalid id for ContributorRole : this is wide open... Andras On Oct 26, 2009, at 5:36 PM, audioworld wrote: > > Hello Andreas, thanks for

Re: Google Bot deleting my database entries!

2009-10-26 Thread Gonzalo Servat
On Tue, Oct 27, 2009 at 8:36 AM, audioworld wrote: > > Hello Andreas, thanks for checking, > > but as you can see from the app_controller above, I think I > implemented the authentication properly. > what you see at the link is just the "index" action, but when you > klick on an "add" action: > h

Re: Google Bot deleting my database entries!

2009-10-26 Thread audioworld
Hello Andreas, thanks for checking, but as you can see from the app_controller above, I think I implemented the authentication properly. what you see at the link is just the "index" action, but when you klick on an "add" action: http://doidata.net/contributor_roles/add there is the correct error

Re: Google Bot deleting my database entries!

2009-10-26 Thread Andras Kende
Hello, Your site is not password protected so google robot just crawling through the delete links.. http://doidata.net/contributor_roles/ Andras On Oct 26, 2009, at 4:36 PM, audioworld wrote: > > I have a basic database management online at http://doidata.net > The access to the admin se

Re: Google Bot deleting my database entries!

2009-10-26 Thread audioworld
yes I do, this is the code from app_controller.php: class AppController extends Controller { var $components = array('Session'); var $helpers=array('MyPaginate','Text'); var $allowedActions=array ('index','view','doi_codes','display','owner','search'); function bef

Re: Google Bot deleting my database entries!

2009-10-26 Thread Miles J
Are you applying the authorize login settings within the beforeFilter ()? On Oct 26, 1:36 pm, audioworld wrote: > I have a basic database management online athttp://doidata.net > The access to the admin section is secured with a simple > authentication which is hardcoded in the file /config/core

Google Bot deleting my database entries!

2009-10-26 Thread audioworld
I have a basic database management online at http://doidata.net The access to the admin section is secured with a simple authentication which is hardcoded in the file /config/core.php In theory, when someone without the admin cookie set, access to the routes ../resource/delete/ID should be blocked

Can i modify properties of ACL models please ? :-0

2009-10-26 Thread Xanax
Hello everyone, My problem is simple. I need to specify the "$sequence" variable in all my models because i use sequences to handle the autoincrement id of my Oracle Primary keys. I created three file in my model folder :aco.php, aro.php, aro_aco.php juste with this code : But this code isn't

Re: Paginator helper in Cake 1.3

2009-10-26 Thread mark_story
Perhaps you forgot the writeBuffer() call? Unlike the old Ajax helper, the JsHelper does not make a script element each time a method is called. Instead it buffers them internally until you call echo $js- >writeBuffer(); -Mark On Oct 25, 5:35 pm, jacmoe wrote: > Check Marks > blog:http://mar

Re: MAMP + CakePHP issues

2009-10-26 Thread fahd
Problem solved! Here's the explanation: http://stackoverflow.com/questions/1603575/mamp-and-cakephp-call-to-model-issue/1626179#1626179 On Oct 26, 11:59 am, fahd wrote: > This seems to not be related to MAMP as I thought before. Its > basically an issue with certain HABTM models not loading - an

Re: Controller and Session in View

2009-10-26 Thread sateesh
How to save the session in the view. In tutorial it is mentioned that we should not use the write method in the view. Then what is the alternative method to save the sessions in the view of cake php. On Oct 14, 9:20 pm, brian wrote: > On Wed, Oct 14, 2009 at 4:00 AM, Prof. No Time > > wrote: >

Re: Good SVN Deployment Plan for CakePHP

2009-10-26 Thread Sergio Pola
You must be aware in the checkout that the user who own the file is apache if you run a php script. On Oct 26, 3:28 am, frederic bollon wrote: > Hi JeremyL > > You should give try to Fredistrano,http://code.google.com/p/fredistrano/. > > It automates the export of your sources from a subversion

Re: MAMP + CakePHP issues

2009-10-26 Thread fahd
This seems to not be related to MAMP as I thought before. Its basically an issue with certain HABTM models not loading - and other people seem to have the same problem. The solutions say it could be a "typo" of the model names, but so far I haven't found any. Not sure if anyone has found a solutio

Re: cakephp not working, please help

2009-10-26 Thread David Roda
not if they dont allow you to override the .htaccess rules unfortunately. I've never known a hosting provider to not allow it though 2009/10/26 浪漫様 > > unfortunatelly, the hosting provider staff are just a bunch of morons > that don't even know what a subdomain is [ amazing ] and don't provide

ajax timeouts

2009-10-26 Thread paulinthought
Hi, I'm using an ajax drag and drop script to add information to my database and update a div. The problem is that every time I drop an item after 30secs I get an error message relating to timeouts in my updating div. The database is saving the new information but each time the message appears its

Re: Errors on nginx + php-fpm, no errors on apache

2009-10-26 Thread Balrog
I have tried also spawn_fcgi Same errors encountered :/ So what, should i just stick to old fashioned mod_php?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to ca

Fat models - design question, where to put logic?

2009-10-26 Thread red
Hi, I've design question, where to put the code for situations like this: 1. Shop -> hasMany -> Categories 2. Categories are TreeBehavior 3. For every Shop I put new root Category, so it look like: - Root Category for Shop #1 --- Category 1 --- Category 2 - Root Category for Shop #2 --- Category

Re: CakePHP design tips?

2009-10-26 Thread Dérico Filho
Ixus, Take care with File Cache engine. If your application creates tens of thousands of objects, it might slowdown a lot, as the filesystem driver would have to trasverse among many files within a single directory. You'd have to patch your file cache engine so as to create a tree of subdirecto

Re: Error trying to open my cake pages

2009-10-26 Thread Dewayne Pinion
Should be the cake 404, as I have a custom 404 for the rest of the site. On Fri, Oct 23, 2009 at 11:20 PM, Dr. Loboto wrote: > > What 404 page do you see, Apache or Cake one? In first case it is > mod_rewrite problem. In second - the problem is in your app. Probably > in routes or filenames. > >

Re: Errors on nginx + php-fpm, no errors on apache

2009-10-26 Thread Balrog
Problem originates from libs/session.php. This instruction: session_set_save_handler( array('CakeSession','__open'), array('CakeSession', '__close'),

Re: Custom route stop working without trailing '/'

2009-10-26 Thread Dr. Loboto
Router::connect('/admin/*',array('controller' => 'admins', 'action' => 'dashboard', 'admin')); On Oct 26, 1:26 am, Jesh wrote: > Just setup a custom route for users controller as below: > > Router::connect('/admin',    array('controller' => 'admins', 'action' > => 'dashboard', 'admin')); > >

Re: Errors on nginx + php-fpm, no errors on apache

2009-10-26 Thread Balrog
Problem still exists after upgrading to 1.2.5 Configure::write('Session.save', 'cache'); If I store sessions outside of cache, then It disappears. Any advice on this ? :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: cakephp html link problem

2009-10-26 Thread arif hossen
Please use this code : I hope your problem will solve by this code. link('Login', array('controller'=>'users','action'=>' login ')); ?> On Mon, Oct 26, 2009 at 3:27 PM, gautam lakum wrote: > > I am new to cakePHP. I have used the last and newer both versions. In > new version I am facing pr

Re: How to enable the right click for a single page out of the whole website?

2009-10-26 Thread anurag pal
Try this On Mon, Oct 26, 2009 at 4:10 PM, grigri wrote: > > Disabling right-click is a really dick move, and won't actually solve > any "problems" that you may think it will. Page source, images, pretty > much everything is still accessible. On the other hand, the > frustration of not being ab

Re: How to enable the right click for a single page out of the whole website?

2009-10-26 Thread grigri
Disabling right-click is a really dick move, and won't actually solve any "problems" that you may think it will. Page source, images, pretty much everything is still accessible. On the other hand, the frustration of not being able to do right click and "open link in new window" or anything else wi

cakephp html link problem

2009-10-26 Thread gautam lakum
I am new to cakePHP. I have used the last and newer both versions. In new version I am facing problem with generating html link using $html- >link The link as output is currect. But with the link title, I am also getting the link as text that I have applied. Look below e.g. link("Login",'/us

cakephp html link problem

2009-10-26 Thread gautam lakum
I am new to cakePHP. I have used the last and newer both versions. In new version I am facing problem with generating html link using $html- >link The link as output is currect. But with the link title, I am also getting the link as text that I have applied. Look below e.g. link("Login",'/us

Re: CakePHP design tips?

2009-10-26 Thread j0n4s.h4rtm...@googlemail.com
Recently I began of thinking to separate certain functionality in some way. On a first glance there is: - Helpers - Components - Behaviors But you can also use plugins to bundle some functionality. Did any of you try multiple apps side by side (lets say /app1 and / app2) and using a proxy app (i

Re: How to pass custom urls to pagination methods

2009-10-26 Thread j0n4s.h4rtm...@googlemail.com
To answer it anyway, not sure if its the best way but: In your View: options(array('url' => $this->passedArgs))?> On Oct 25, 11:30 pm, BeerMan wrote: > Oh problem solved. nevermind. thx anyways.. > > On Oct 25, 3:01 pm, BeerMan wrote: > > > Just to be clear on my problem, for e

Re: CakePHP doesn't use my sequence.......

2009-10-26 Thread Xanax
Hello, Thanks for your answer. I've seen this page, i had already modified my code like it is recommanded. I have the version just before the latest stable CakePHP 1.2.5 : mine is 1.2.4.8284 I've seen the changelog of the 1.2.5 version, it doesn't seems that this version correct a bug relativel