I am using ACL in following way
AROs Pattern
Groups > Users
ACOs Pattern
All->Controllers->Actions
Now if i check certain Action against certain group, the System make 4
queries at every execution.
So is it useful using ACl.. Can it make any prob if the application
gets heavy? Coz its seems to
I have a model not derived from a table, with one validation rule.
class Tablelessmodel extends AppModel
{
var $useTable = false;
var $_schema = array(
'firstname' =>array('type'=>'string',
'length'=>20),
'lastname'
Hi All,
I am facing this strange issue with
$content_for_layout spits a which spoils the page structure.
I used a simple layout without any other elements. The html output is
shown below.
http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
Test
look for whitespaces in your controller files after the ?>
Jan Ditze schrieb:
> Moin Moin,
>
> ich fange gerade an eine App mit Cake zu entwickeln. Jedoch bin ich
> schnell auf einen Fehler gestoßen, den ich mir nicht erklären kann.
>
> Wenn ich auf dieser Seite:
>
> http://otten.seolize.de/konfi
Hi,
I've ran into the same problem as you did and ended up writing a Cake
Shell script that periodically get's executed by a cronjob.
The script script writes the .xml file to a location on the webserver,
making it accessible through a Cake web page.
Don't have the code at hand here, but if you'
I am using ACL in following way
AROs Pattern
Groups > Users
ACOs Pattern
All->Controllers->Actions
Now if i check certain Action against certain group, the System make 4
queries at every execution.
So is it useful using ACl.. Can it make any prob if the application
gets heavy? Coz its seems to
THx both. they all worked :)
On 9 Lug, 02:05, brian wrote:
> B: Do you mean a class variable?
>
> $this->myHelper->enabled = false;
>
>
>
> On Wed, Jul 8, 2009 at 2:55 PM, majna wrote:
>
> > A:
> > $view =& ClassRegistry::getObject('view');
> > debug($view->layout);
>
> > On Jul 8, 5:22 pm, Erne
Thanks for replying guys..
I never use IE7,
Am currently using Firefox 3.5
so this is what i did then, i changed my javascript a little
beers_view_beer.js
===
$(document).ready(function() {
var value = $('.add-beer-link').attr('id');
al
is there any sort of caching, the acl component provides by default.
and would there be any speed issue if i use acl. if so, is it possible
to optimize acl.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" g
I use it to build my schemas then go to File > Export > forward engineer SQL
CREATE Script.
That gives the full sql to build the database on mysql, and once cake is
configured to see your db the bake script will pick up everything (as you
probably already know)
You can also export the ALTER scrip
On Wed, Jul 8, 2009 at 8:42 PM, GravyFace wrote:
>
> I'd go with both: it's never good to rely on hiding things from the UI
> -- if you actually fatten up your model (like you should) to include
> a check for current user id, you'll be safer in the long run.
Yes, put a validation check in the mo
You're setting a variable named $projects, not $project. So are you
creating the 'Add Sequence' links in a loop?
Put a debug($projects) line in your view.
On Wed, Jul 8, 2009 at 5:19 PM, menashe morobuse wrote:
>
> my projects/view view has a line like this...
>
> link('Add Sequence','/sequences
I'd go with both: it's never good to rely on hiding things from the UI
-- if you actually fatten up your model (like you should) to include
a check for current user id, you'll be safer in the long run.
On Wed, Jul 8, 2009 at 8:33 PM, brian wrote:
>
> I agree with Jon about the "buy" button. But
I think you meant debug > 0 :-)
I've seen something similar that I've meant to post about here. I had
some code that included some lines with Debugger::log($something)
that, when I had debug = 0 caused a fatal error. That doesn't seem
right at all. I'd assumed that it would either write to the lo
I agree with Jon about the "buy" button. But don't exclude the User.id
from the find() or you'll confuse people who can't see their own
products.
On Wed, Jul 8, 2009 at 8:04 PM, Jon Bennett wrote:
>
>> I'd put the code deeper, in the Order (or even Cart if you've using a
>> cart metaphor) model i
$this->set(compact('task_id'));
This will fail because Cake will unleash Inflector and change the
variable name to $taskId. You need to use:
$this->set(compact('task_id'), false);
That will give you a view variable $task_id. Or you could just build
your link with $taskId.
However, you probably
B: Do you mean a class variable?
$this->myHelper->enabled = false;
On Wed, Jul 8, 2009 at 2:55 PM, majna wrote:
>
> A:
> $view =& ClassRegistry::getObject('view');
> debug($view->layout);
>
>
>
>
> On Jul 8, 5:22 pm, Ernesto wrote:
>> Hello.
>>
>> 2 simple questions about helpers:
>>
>> A - how
> I'd put the code deeper, in the Order (or even Cart if you've using a
> cart metaphor) model in the beforeSave() callback or perhaps as a
> validation rule to prevent purchases for those link directly to the
> product.
Yep, good idea, but also a good idea to simply not show active users
their o
I'd put the code deeper, in the Order (or even Cart if you've using a
cart metaphor) model in the beforeSave() callback or perhaps as a
validation rule to prevent purchases for those link directly to the
product.
On Wed, Jul 8, 2009 at 6:32 PM, Jon Bennett wrote:
>
>> I have question on the best
> I have question on the best way of applying rules to types of actions
> on certain models with ownership properties. The application I'm
> building is a type of market place application where users are selling
> many items and others can bid on them and buy them.
>
> I understand that ACL is be
I have question on the best way of applying rules to types of actions
on certain models with ownership properties. The application I'm
building is a type of market place application where users are selling
many items and others can bid on them and buy them.
I understand that ACL is best for givi
pr($variable) and debug($variable) are your friends...
On Wed, Jul 8, 2009 at 5:19 PM, menashe morobuse wrote:
>
> my projects/view view has a line like this...
>
> link('Add Sequence','/sequences/add/'.$project
> ['Project']['id'],array('title'=>'Add Sequence')); ?>
>
> then my sequences/add vie
my projects/view view has a line like this...
link('Add Sequence','/sequences/add/'.$project
['Project']['id'],array('title'=>'Add Sequence')); ?>
then my sequences/add view has this:
echo $form->hidden('project_id',array('value' => $project_id));
and my sequenceController controller has this.
Yes, I most certainly agree.
All my cake applications utilize the cake conventions for query
handling.
I was simply trying to give DigitalDude a direct answer to his
question. Which in hindsight may not have been the right thing to
do ;)
Therefore, DigitalDude, altho my suggestion works.. I agre
I still get the error on the view page...
still needs help :(
On Jul 8, 7:05 pm, menashe morobuse wrote:
> i've put the following code in the sequences(notes):
>
> function add($project_id) {
> if (!empty($this->data)) {
> $this->set(compact('proj
Perhaps you shouldn't be working in Cake, if you dont know the basics
of PHP5, better yet PHP4.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegrou
Hello rb,
You are right that is the way to do it.
But my suggestion is that please dont break the basic conventions of
cakephp.
You have to write custom query at very high complex level otherwise there is
no need to use custom query.
So please check the update method in the model.
On Thu, Jul 9,
Can't you just do something like this?:
if($this->Model->query("")){
//success
} else {
//failed
}
On Jul 8, 12:56 pm, DigitalDude wrote:
> Hey,
>
> I'm doing a manual update to my database with a custom query, like so:
>
> $this->Model->query("UPDATE table SET attribute='1' WHERE condit
After searching the group, I'm seeing there are a few issues when
debug = 0.
My issue is with Cakelog::write. Anytime I use it w/ debug < 0,
everything renders just fine -- no errors.
Once I set debug = 0, the page will show up blank.
Is there something about cakephp classes while debug = 0 th
Du'oh...my bad...forgot about that. It's been a while since I have
written a behavior. Thanks.
On Jul 8, 12:01 pm, Jon Bennett wrote:
> Hi,
>
> > I am having a weird problem with a new model behavior I am trying to
> > implement. When I try to pass a value ($data) into the model behavior
> > fu
Thanks for the tip. I installed MySQL Workbench. It looks like a sweet
program, but I'm not totally sure what it does for me. I've imported my
current database tables and created a few EER diagrams. Other than
database planning and documentation, what else can this tool do? Is
there a way
Sorry, I had a typo in the original post...model function should be as
follows:
Model:
function save($data = null, $validate = true, $fieldList =
array())
{
if(isset($data['Model']['field']) && $data['Model']
['field'])
{
$da
Hi,
> I am having a weird problem with a new model behavior I am trying to
> implement. When I try to pass a value ($data) into the model behavior
> function the passed value is replaced with the model object. The
> passed value is a string before $this->enCrypt() is called, but within
> the beha
A:
$view =& ClassRegistry::getObject('view');
debug($view->layout);
On Jul 8, 5:22 pm, Ernesto wrote:
> Hello.
>
> 2 simple questions about helpers:
>
> A - how can i retrieve the current layout name from inside an helper?
>
> B - myHelper class has a global variable called "enabled". Is ther
I am having a weird problem with a new model behavior I am trying to
implement. When I try to pass a value ($data) into the model behavior
function the passed value is replaced with the model object. The
passed value is a string before $this->enCrypt() is called, but within
the behavior function $
This article might be helpful:
http://swik.net/PHP/Object+Oriented+PHP
On Wed, Jul 8, 2009 at 12:57 PM, Carlos Gonzalez
Lavin wrote:
> Oject Oriented Programming buddy... $this makes reference to an object(a
> class's instance), everything after -> is the object methods and attribs
>
> 2009/7/8 B
you are aware of the fact that the primary language in this group is
english? :)
On 8 Jul., 13:54, Jan Ditze wrote:
> Moin Moin,
>
> ich fange gerade an eine App mit Cake zu entwickeln. Jedoch bin ich
> schnell auf einen Fehler gestoßen, den ich mir nicht erklären kann.
>
> Wenn ich auf dieser
@James:
from my experience, using
ClassRegistry::init() instead of App::import()
creates the model instances only once (so called Singleton Pattern)
therefore you dont have that much more memory usage..
using this inside elements might not be MVC like, but it would come
close to the above "Joom
There are plans to make almost all output from bake template based as
well, so the need to hack up the tasks will be greatly reduced as
well.
-Mark
On Jul 6, 8:35 pm, "Paul" wrote:
> Controller code is built in:
>
> \cake\console\libs\tasks\controller.php
>
> That’s where you need to make chang
jQuery support is planned for the next release, along with Mootools
and Prototype. Most of the ui widgets afforded by jquery ui will be
available through the helper. However, non core-jquery, non-jquery ui
widgets will not be supported at a core level. There are simply too
many random plugins to
My fault, I wasn't reading your description correctly.
On Wed, Jul 8, 2009 at 9:53 AM, iFeghali wrote:
>
> On Jul 8, 1:35 pm, Mike Bates wrote:
> > Is there a reason for Machine and Service to have many to many
> relationships
> > (machine with Type and category, Service with customer)? There a
Oject Oriented Programming buddy... $this makes reference to an object(a
class's instance), everything after -> is the object methods and attribs
2009/7/8 Benshep
>
> can someone explain to me why the use of $this-> is so prevalent
> throughout cake applications. I have looked around the documen
Hey,
I'm doing a manual update to my database with a custom query, like so:
$this->Model->query("UPDATE table SET attribute='1' WHERE condition='".
$variable);
It's all good, it works fine. But how can I check if the result, in
this case the update, was successful?
I need to check if it was su
can someone explain to me why the use of $this-> is so prevalent
throughout cake applications. I have looked around the documentation
and cant find anything specific. Im guessing this is something a php
programmer is assumed to know though I have only done some basic task
in php and am not sure wh
On Jul 8, 1:35 pm, Mike Bates wrote:
> Is there a reason for Machine and Service to have many to many relationships
> (machine with Type and category, Service with customer)? There are often
perhaps I misunderstand you but those relationships are defined as
"one to many". e.g. a machine has only
"Without Containable, you'd end up needing to use the unbindModel()
method of the model, multiple times if you're paring off multiple
models. Containable creates a cleaner way to accomplish this same
task."
seems a good alternative for me :)
thank you
On Jul 8, 1:35 pm, brian wrote:
> Have you
I'd put the method in RecipesController. Just grab the user_id from
the session (or Auth). Or, if you want people to be able to see other
users' recipes:
function yourAction($user_id = null)
{
if (is_null($user_id))
{
$user_id = $this->Auth->user('id');
}
...
}
On Wed, Jul 8
Luke,
At first glance, I would create a method Recipe::FindUserRecipes
($user_id). In it, you can set your conditions and bind to get the
list of recipes associated with the user.
I hope that makes sense. BTW - I have a similar website in
development. http://www.greatcajuncooking.com
-teh
On
Is there a reason for Machine and Service to have many to many relationships
(machine with Type and category, Service with customer)? There are often
complications when you have db design with many to many relationships.
Try creating new tables in between them so you can have HABTM between
machine
Have you tried using Containable? It's much usually easier to work
with than relying on 'recursive'.
On Wed, Jul 8, 2009 at 11:08 AM, iFeghali wrote:
>
> Hello All,
>
> I am stuck at a circular relationship problem. This is my scenario:
>
> - Machine HABTM Service HABTM Machine
> - Machine belong
Any modular system is going to be written to meet specific needs. The
main issue that I see with CMS-rivaling system is the need to tie it
in at all stages of the application: model, view and controller.
Modules themselves would need a database presence, requiring models. A
notification system tha
i've put the following code in the sequences(notes):
function add($project_id) {
if (!empty($this->data)) {
$this->set(compact('project_id'));
$this->Sequence->create();
if ($this->Sequence->save($this
You need to make sure you're setting the task_id in the controller; it
won't show up in the 'add' view automatically:
$this->set(compact('task_id'));
On Wed, Jul 8, 2009 at 11:14 AM, Carlos Gonzalez
Lavin wrote:
> That var was meant as a placeholder in order for you to change to whatever
> fitte
I'm not sure if I'm just doing it wrong or if there is no support for
themes in the vendor folder.
When themes are enabled, webroot needs to have the following folder
structure for themed files:
/webroot
/themed
/default
/css
/img
So I would presume that if vendors su
Hello all,
I have been using cake's xmlhelper to render my xml output quite
successfully. but i need to create a rather large file (2
records), for a product feed export. if i limit my results to 100 at a
time they render fine but obviously a brickwall is hit at higher
numbers php generates o
Hello.
2 simple questions about helpers:
A - how can i retrieve the current layout name from inside an helper?
B - myHelper class has a global variable called "enabled". Is there
any way to set myHelper::enabled = false from a controller?
--~--~-~--~~~---~--~~
Yo
this app is a very simple app. It is composed by a single controller,
two layouts and 5 views.
there's no app_controller or app_model and even no behaviors.
i'm having this problem on the last 2 views, both using the second
("striptothebone") layout.
The other 3 views are working fine.
Every views
Hi,
I am developing a small recipe site, this is my first cakePHP project.
I now have a structual question.
You have to register and log in to add a recipe. So in the recipe
table will be your user_id. You can also save recipes in your
cookbook. To see your saved and your own recipes, you have t
Are you doing your testing in IE7? There are reports that IE sucks:
https://trac.cakephp.org/ticket/1935
http://www.google.com/search?q=internet+explorer+sucks
Or maybe following in the footsteps of a tried-and-true approach:
http://marcgrabanski.com/article/cakephp-ajax-quick-save-jq
That var was meant as a placeholder in order for you to change to whatever
fitted you.. so yeah.. that could be the problem :)..
2009/7/8 menashe morobuse
>
> i get something like
>
> Undefined variable: task_id [APP\views\notes\add.ctp, line 7]
>
> I've changed this:
>
> *echo $html->link('Add
Hello All,
I am stuck at a circular relationship problem. This is my scenario:
- Machine HABTM Service HABTM Machine
- Machine belongsTo Type hasMany Machine
- Machine belongsTo Category hasMany Machine
- Service belongsTo Customer hasMany Service
So far so good. When the user goes to /machine/
I do not see your AJAX response display.
Read this too: http://docs.jquery.com/Ajax/jQuery.post
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegrou
I've been using this since almost the day you released it! A very good
plugin, nice job. I'm extending it to use DB models and fit within a
CMS framework - it was a great base and a real time saver. Thanks for
the contribution.
- Jamie
On Jul 7, 1:18 pm, Miles J wrote:
> I wrote this for your g
i get something like
Undefined variable: task_id [APP\views\notes\add.ctp, line 7]
I've changed this:
*echo $html->link('Add
note','/note/add/$task_id_variable',array('title'=>'Add note'));*
to:
*echo $html->link('Add
note','/note/add/$task['Task']['id'],array('title'=>'Add note'));*
is tha
There are a lot of resulting steps between you passing in your data
and the resulting SQL being queried. Please provide some more
information and code examples.
On Jul 8, 9:33 pm, Ernesto wrote:
> DateTime
> default = null
> null field
>
> On 8 Lug, 15:20, Alastair wrote:
>
> > On Jul 8, 2:15 p
Hi,
in my database there is a field called "released" type "date".
In the view I use this:
$form->input('released', array('empty' => true))
Which gives me three nicely formatted select fields for month, day and year.
But I can only save the field if all three select fields have a value.
If I sel
On Wed, Jul 8, 2009 at 9:50 AM, Benshep wrote:
>
> Hello,
>
> I am just checking out cakephp as an option for putting together a web
> application I need to create. Im hoping someone can tell me if the app
> I will outline below is something cakephp can and should be used to
> create.
>
> The app
Hello,
I am just checking out cakephp as an option for putting together a web
application I need to create. Im hoping someone can tell me if the app
I will outline below is something cakephp can and should be used to
create.
The app will allow users to register and make an account, in this
accou
Aight.. code it is
Add a link somewhere in the task view such as:
*echo $html->link('Add
note','/note/add/$task_id_variable',array('title'=>'Add note'));*
(which could be even sexier if you used an array for the link, but let's
leave it like this to start)
Then, in the note controller:
*functio
Hello
You’ve probably noticed that by default CakePHP will only create a
JOIN query if you have a hasOne or belongsTo associations between your
models.
So please
$this->Company ->unbindModel(array('hasMany'=>array('Location')));
$this->Company->bindModel(array('hasOne'=>array('Location'=>array
(
Hi,
I am using CakePHP 1.2.3.8166, PHP 5.2.8, MySQL 5.0.67.
I am having difficulty getting stored procedures to work with CakePHP.
I got an error message to begin with (I can't remember it - it's
irrelevant now), but after some searching, I discovered that I had to
use the MySQLi database driver
A helper in conjunction with elements would likely be the closest
thing you'll get to a Joomla module. Elements would contain the
presentation logic for each "module", and the helper could be written
to act like a "module bucket" - pull in the modules for that page,
pass data to the elements and r
DateTime
default = null
null field
On 8 Lug, 15:20, Alastair wrote:
> On Jul 8, 2:15 pm, Ernesto wrote:
>
>
>
>
>
> > Hello.
>
> > i'm having some troubles with cake.
>
> > here's my this->data array
>
> > Array(
> > [id] = 30
> > [date] = 2009-11-23
> > )
>
> > here's a piece o
like i wrote...
i am kind of a noob in it...
can u please help me out with this?
thanks
On Jul 8, 6:24 am, Carlos Gonzalez Lavin
wrote:
> How about you send the current task id as a parameter to the "add" action in
> the "note" controller (as in 'app/note/add/3'... or something a bit better
> lo
How about you send the current task id as a parameter to the "add" action in
the "note" controller (as in 'app/note/add/3'... or something a bit better
looking)... then just put it in a hidden field?
There's also the adding the current task id to the session and retrieving it
when adding a note.. b
On Jul 8, 2:15 pm, Ernesto wrote:
> Hello.
>
> i'm having some troubles with cake.
>
> here's my this->data array
>
> Array(
> [id] = 30
> [date] = 2009-11-23
> )
>
> here's a piece of my SQL dump
>
> UPDATE `table` SET `id` = 30, `date` = '2009-11-23' WHERE
> `table`.`id` = 30
is there any sort of caching, the acl component provides by default.
and would there be any speed issue if i use acl. if so, is it possible
to optimize acl.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" g
Hello.
i'm having some troubles with cake.
here's my this->data array
Array(
[id] = 30
[date] = 2009-11-23
)
here's a piece of my SQL dump
UPDATE `table` SET `id` = 30, `date` = '2009-11-23' WHERE
`table`.`id` = 30
why is cake de-coding the "-" in date???
--~--~-~--~-
ty for your quick reply robert.Well i have tried it and see what it prints:
Array
(
[Geonames] => Array
(
[style] => MEDIUM
[totalResultsCount] => 1646
[Geoname] => Array
(
[0] => Array
(
On Wed, Jul 8, 2009 at 7:02 AM, saidbakr wrote:
>
> Hello,
>
> It does not work. I may miss understand your suggestion. However, the
> code that I talk about is the code found in the Blig tutorial:
> http://book.cakephp.org/view/334/Create-a-Post-Model
>
> I use Eclipse Version 3.4.1. I'm new into
Hosted Applications
On 8 Lug, 11:04, Martin Westin wrote:
> I was wondering what type of apps you all build?
>
> Mainly, do you mostly build:
> 1. hosted applications (e.g. Bakery, TheChaw, Backpack...), hosted in
> a single place where every user has an account in the same "instance"
> of the a
Moin Moin,
ich fange gerade an eine App mit Cake zu entwickeln. Jedoch bin ich
schnell auf einen Fehler gestoßen, den ich mir nicht erklären kann.
Wenn ich auf dieser Seite:
http://otten.seolize.de/konfigurator/houses/add
ein Haus anlege kommt ein Fehler (Ihr seht ihn selbst):
Cannot modify
On Jul 8, 12:43 pm, Robert P wrote:
> Refactored to remove unnecessary table.
>
> $joins = array(
> array(
> 'table' => 'counties_users',
> 'alias' => 'CountiesUsers',
> 'type' => 'INNER',
> 'conditions' => array('Member.us
follow this link http://book.cakephp.org/view/219/Blog
and its simple enough
tip:read and read.it again and again
On Wed, Jul 8, 2009 at 3:22 PM, Dhileepen Chakravarthy <
dhileepen.cake...@gmail.com> wrote:
> Hello everybody,
>
> I am a new guy for cake php .
>
> I installed cakephp
I'm developing a marketing extranet for a large multinational, they
have a large number of internal sites (50+) all accessed via a single
"portal". A user logs into this portal and then has a number of links
to all of the internal sites to which they have access.
The portal generates a "token" w
Hello everybody,
I am a new guy for cake php .
I installed cakephp in my XAMPP server.
How do i create a sample application.
Please help me a easy to understand URL
Regards,
Dhileepen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Refactored to remove unnecessary table.
$joins = array(
array(
'table' => 'counties_users',
'alias' => 'CountiesUsers',
'type' => 'INNER',
'conditions' => array('Member.user_id =
CountiesUsers.user_id')
),
arr
Um, have you tried checking the contents of $parsed_xml?
debug($parsed_xml);
On Jul 8, 6:33 pm, Paulos23 wrote:
> Hi people,
> I am running a problem here.I am using HttpSocket to get some data
> from an external site(i am building a geocoding app) but i cant
> manipulate the returned xml d
Ah yes, I did mean AppModel. Either that or my local copy of Cake is
based on CVM. I can't seem to get ContainableBehaviour to work either.
It keeps trying to query the database using "contain" instead of SQL.
Time to fall back to a custom join perhaps?
$joins = array(
array(
Hello,
It does not work. I may miss understand your suggestion. However, the
code that I talk about is the code found in the Blig tutorial:
http://book.cakephp.org/view/334/Create-a-Post-Model
I use Eclipse Version 3.4.1. I'm new into Eclipse and CakePHP.
On Jul 8, 11:27 am, schneimi wrote:
>
Hi people,
I am running a problem here.I am using HttpSocket to get some data
from an external site(i am building a geocoding app) but i cant
manipulate the returned xml data.I do somewthing like this
$results = $HttpSocket->get('http://ws.geonames.org/search?',
'q=barcelona&maxRows=10');
Hi Robert,
Thanks for your help with this although it doesn't appear to be quite
working. It's certainly returning just members however it is returning
ALL members.
I'm assuming when you said AppController you meant AppModel for the
actsAs('Containable')?
The code I'm using is as follows:
App
1. Before rendering the view it's a good idea to unset any sensitive
information in Controller::$data. This way, the form will get to
display the errors and the password fields will stay empty.
2. The error comes from the call to:
FormHelper::error() => h() => htmlspecialchars($this->val
I was wondering what type of apps you all build?
Mainly, do you mostly build:
1. hosted applications (e.g. Bakery, TheChaw, Backpack...), hosted in
a single place where every user has an account in the same "instance"
of the application.
or
2. distributable applications (e.g. Neutrino, Wordpress,
Hi,
Thanks! that worked just fine -- this is the 'cake blog tutorial'
from cake PHP itself.
Is the tags.ini.php also gone? Didn't see it in the SVN repos,
either.
krishnan
On Jul 8, 1:22 pm, Robert P wrote:
> It sounds like you are using a tutorial designed for CakePHP 1.1.
> You'll
For your find to work the way you expect it you need to use a join in
the query. hasMany doesn't do this by default.
You can do the query from the other side, since belongsTo is a joining
association.
$results = $this->Company->Location->find('all',...);
Or you you can specify a join. Check out
I would recommend taking advantage of the automatic binding by using
Model::$hasMany instead of binding on-the-fly.
Basically, the conditions you have generated are not Location
specific. Why bind them to the model? Instead, try something like the
following:
$conditions = array(
'OR'=>array(
Hi,
for code completion in controllers, you can declare the vars and use
phpdoc in your app_controller.php:
/**
* @var CookieComponent
*/
var $Cookie;
/**
* @var Yourmodel
*/
var $Yourmodel;
For completion of helpers in views, you have to create an arbitrary
file in you app folder
I'm rather new to cakePHP and am experimenting with it, in the hope
that it will be the framework I will use for a multilingual site I
have been tasked with. The site will be available in German and
English.
Problem 1: When the form doesn't validate correctly it is reloaded
with the password alre
It sounds like you are using a tutorial designed for CakePHP 1.1.
You'll note that the error is only saying that HtmlHelper does not
have an input() method, not that you have a file or variable missing.
Try switching over to FormHelper in your controllers and views, since
using HtmlHelper to gene
1 - 100 of 101 matches
Mail list logo