Write permission is needed only for directories/files you write to.
That would be only the app/tmp directory if you're not using file
uploads. The rest of the files should be read-only for the web server
to prevent accidental or malicious writes. The "execute" permission is
really only needed for d
You can't rely on the id. What are you trying to achieve? What does your code
look like?
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 30 Aug 2010, at 22:16, Alexis Laporte wrote:
> Hello people,
>
> I'm new at this cake thing ; facing difficulties with F
On 25 ago, 10:58, "j.blotus" wrote:
> (..) I would like to get
> code coverage going for my controllers, but since they do not return
> anything, what exactly am I going to be testing for? (..)
Basically, you can use the testAction method to test the
variables an action set to the view (my choice
thanks walther the query you have has been running sucessfully..
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 group, sen
Thanks for the start. It works great!
On Aug 27, 11:49 pm, "eugenioc...@hotmail.com"
wrote:
> Have you try making joins intead of subselects? the subselects are not
> recommended because they usually are very slow. Joins are really
> faster.
>
> Try with something like this;
>
> $options = array
Not really quite what i meant
my query basically selects a field called "firstpost", which is a table
joined on another query later on...
doesn't matter, got around the issue by manually overriding the hasFields()
method to force pagination to work properly.
On Tue, Aug 31, 2010 at 2:40 AM,
That's even easier :)
thanks
On Tue, Aug 31, 2010 at 3:23 AM, Miles J wrote:
> You don't even need a route...
>
> Router::connect('/threads/*', array('controller' => 'threads',
> 'action' => 'index'));
>
> This by default will become /threads/ without the route.
>
> So remove the route and
SacoDesign is right. its not working as expected (or the cook book is
wrong)
- - Here is the same from cookbook (
http://book.cakephp.org/view/46/Routes-Configuration
)
"Another common use for the Router is to define an "alias" for a
controller. Let's say that instead of accessing our regular UR
Hello,
i simply want to change the default routing pattern "http://
example.com/controller/action/param1/param2/param3" into "http://
example.com/param1/controller/action/param2/param3". Is there a simple
way to do this?
Regards
Harald
Check out the new CakePHP Questions site http://cakeqs.org
Hello people,
I'm new at this cake thing ; facing difficulties with FormHelper.
Problem is : I use the helper in the layout, to output a login form
(mail + password). Its html id changes all the time (depending upon
the URL : its id is wheter LoginAddForm or LoginIndexForm or
LoginEditForm, etc.)
Hi,
i created a default layout with a login form in the head area that
switches to a different view if the user is logged in.
When I try to login through this login form and submit it I receive a
404.
I worked with the form helpers and to nail down the problem, I copied
the working code from the l
Cool thanks for your reply.
I have also dug around about it for a bit and realise it might not
always be a good idea to do edit/delete on a view (eg, someone else
takes over the project and starts relying on the views as opposed to
the actual tables), but if index and view works I am happy to give
I am in the process of upgrading a 1.2 site to 1.3 and I am getting this new
error
http://php.net/function.array-merge'>function.array-merge]:
Argument #2 is not an array [CORE/cake/libs/sanitize.php, line
113http://cakeqs.org and help others with
their CakePHP related questions.
You received th
Dave,
iIs an ugly hack in the view but works for me on
http://www.unionofsports.com/brand/burton/7 :
routes.php
Router::connect('/brand/:manufacturer_slug', array('controller'=>
'products', 'action' => 'brand'), array('pass' => array('manufacturer_slug')));
Router::connect('/bra
I'm having a problem right now with my application. I have acl set up
and I am using groups for all my users following this tutorial
http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application
One user group I have set up as denied from /controllers using
$this->Acl->deny($group, 'contro
Doh!
Never mind. AJAX snafu caused my problem. Guess I didn't think you
could save to a MySQL database id field if it was auto-increment.
On Aug 26, 12:23 pm, cricket wrote:
> On Wed, Aug 25, 2010 at 1:40 PM, DragonFlyEye
> wrote:
> > Here's an interesting one. I don't know if this has som
On Mon, Aug 30, 2010 at 2:21 PM, andres amaya diaz wrote:
> Hi, i have some filters in the index page of a listing, you can choose all
> of the filters or just one, if i choose all of them they work fine but if i
> only choose one it gives me a blank web page, here is the code:
Have you checked t
Hey, Cricket, thanks for getting back to me.
I tried using the ID originally and put it back that way just to make
sure I wasn't missing something. Nope. I'll have to keep playing with
it. If you think of anything, let me know! I'd appreciate it.
On Aug 26, 12:23 pm, cricket wrote:
> On Wed, Aug
Not sure what order you had things in, but order is important. So, you
should be able to get things working by putting these two in the
following order:
Router::connect('/blog/:action/*',
Router::connect('/blog/*', array('controller'=>'news_articles'));
Obviously, the /blog/* will catch all occur
@Anthony
Other than the fact that you can submit edits for the docs, I would
argue that you can submit articles to the bakery and edit cookbook
sections if you have or need relevant examples. There are also
hundreds of blog posts showing examples on how to fix common problems.
Part of being a devel
Hi, i have some filters in the index page of a listing, you can choose all
of the filters or just one, if i choose all of them they work fine but if i
only choose one it gives me a blank web page, here is the code:
/app/controllers/quotes_controller.php
function index() {
$this->Quote->rec
I have defined views as tables (i.e. set up a model that points to it) and it
works great for index/view, but edit/delete is dependent upon the database and
view structure - views are often based on more than one table, so are more
complex than a single table.
Jeremy Burns
Class Outfit
jeremyb
You don't even need a route...
Router::connect('/threads/*', array('controller' => 'threads',
'action' => 'index'));
This by default will become /threads/ without the route.
So remove the route and just pass this:
link('Title', array('controller' => 'threads',
$id)); ?>
Which will become: /thr
Don't quote me on this, but no I do not think you can do that... with
the Pagination/Paginator classes.
You could most likely do this with a lot of custom work on your end,
but it is possible.
On Aug 30, 9:07 am, "Dave Maharaj" wrote:
> 2 questions I cant seem to figure out
>
> I was wondering h
Sorry Muthuvel, this doesn't directly answer your post but I noticed
you used the var_dump function in that last snippet. I just wanted to
let you know that there is a really nice debug() function that cake
provides that formats everything nicely and outputs similarly to
var_dump.
On Aug 29, 12:
@geoB
>Thank you for the valuable insight into the Cake Way.
Any time. Keep at it, cake is really really awesome!
@j.blotus
And there are thousands more who likely disagree with you. People
like you chime in any time the documentation is knocked. For most
people wanting to use cake I assume the
On Sun, Aug 29, 2010 at 9:22 PM, Greg Skerman wrote:
> Hi,
>
> Wondering if its possible to define virtual fields without actually defining
> what the virtual field points at?
So, it would be assigned to everything and nothing?
> I want to do this later on in my query via a join, but need to def
Hi
I use MediaPlugin of David Persson.
All works perfectly.
I have only this question about the use of this plugin
How can I set the plugin to use .zip file , .7zip file , .rar file
For the moment I get always this error :
Fatal error: Uncaught exception 'Exception' with message 'No adapters
conf
2 questions I cant seem to figure out
I was wondering how to remove index/page:2 from the url =>
[controller]/index/page:2 so it looks like [controller]/2
And then is it possible to make pagination like that on the pirate bay where
the url look like [controller']/0/99/0 where I am assuming
Hi All,
Just wondering if there is a way to use database views in CakePHP.
Say I want to have a view
CREATE VIEW user_view_{$user_id} AS
SELECT *
FROM users, comments
WHERE users.id = comments.user_id
AND users.id = {$user_id} ;
and I also want to have an adhoc model to CRUD on this vie
I would like my system accepts authentications from external
domains...
Is correct decrease the security (Security.level = low) of all system,
only to accept data from external domain in only a action of system?
Exists some form to work with security level medium, and disable
session.referer_chec
Hi,
I have a question about i18n.
I have 2 models linked together (Category hasMany Item) (Item
belongsTo Category ;-) )
When I do $this->Category->read(null, $id); in the controller,
something not usual happens.
Informations about my category are retrieved and its title from the
i18n table too.
In the end, the following solution works for me:
1. Modify jquery_engine.php as suggested by ecommy.com:
jquery has live event feature to acomplish that copy
cake/libs/view/helpers/jquery_engine.php to
app/views/helpers/jquery_engine.php
now open jquery_engine.php and on line 181 change the code
I have to disagree with your notion that the cookbook is just for
people who already "got it". I learned from the cookbook, and so did
thousands of others. Here are some pages to look at:
http://book.cakephp.org/view/955/Controllers
http://book.cakephp.org/view/1001/Understanding-Models
http://
Anyone, please? I'd relly like to test my app...
On 30 Aug., 10:28, Joshua Muheim wrote:
> OK, this helps me with the deprecation warnings. But still SimpleTest
> doesn't run for me. What about
>
> "> You need a new test.php. Try this one: cake\console\libs\templates\skel
>
> > \webroot\test.php"
arghh... told you it'd be easy... thanks for that :)
On Mon, Aug 30, 2010 at 10:35 PM, Andy Dirnberger wrote:
> Router::connect('/threads/*', array('controller' => 'threads',
> 'action' => 'index'));
>
> On Aug 30, 7:52 am, Greg Skerman wrote:
> > Ok so this should be fairly easy right?
> >
>
Router::connect('/threads/*', array('controller' => 'threads',
'action' => 'index'));
On Aug 30, 7:52 am, Greg Skerman wrote:
> Ok so this should be fairly easy right?
>
> I have a few controllers (forums, threads and posts)
>
> The index of the forums controller shows the list of available forum
@Anthony:
Thank you for the valuable insight into the Cake Way.
I started with it with the intention of rewriting an existing online
application. The documentation struck me as a good set of reminders
for those who already "got it". I've only rebuilt my database once.
So far. I suppose "rapid
Ok so this should be fairly easy right?
I have a few controllers (forums, threads and posts)
The index of the forums controller shows the list of available forums
The index of the threads controller shows the list of threads for a forum
(so an ID is passed to the index method)
The index of the po
Hello,
I have this problem after moving my app to the production server. If I
have debug = 1 or debug = 2 everything works ok. If I switch debug to
0 I get an Internal Error 500. I should add that everything works fine
on localhost, no matter what the debug is. Maybe someone can point me
in the di
OK, this helps me with the deprecation warnings. But still SimpleTest
doesn't run for me. What about
"> You need a new test.php. Try this one: cake\console\libs\templates\skel
> \webroot\test.php"?
Thanks.
On Fri, Aug 27, 2010 at 10:27 PM, Graham Weldon wrote:
> CakePHP 1.x still has support fo
41 matches
Mail list logo