Do you have web hosting, do you understand that a web server is not
something you run from your own home? If you can grasp this then you
will realise it does not matter if a websites administrator is online
or not as there web server is in a data centre and is always online*
*depending on the
It is weird, i have multiple records and id 2 is the second record. The
first record is 'All Products', then i have 5/6 records nested underneath
and then a third level under these records. The only thing i can think to
do is recreate my categories in an empty app and see if the problems still
If you've just added a HardwareGroup, then surely you are then going
to add some Hardware into it and as such being taken to view that
group is going to save you time as any add link in that view would
preselect the newly created HardwareGroup.
If you want to do it your way then in the
Run the find on the Posts model as the other two models are directly
associated to it, then add an on the fly condition to the hasMany
Comment association (if required).
All you then have to do is build your conditions array depending on
what options are specified in the search form.
HTH
Paul.
I didn't understand what you want to display to the user at the end but.
I think the best way to do it is by creating a function or a view(database
view object) in the database.
If you can create one temporary table from all found data display the
temporary table to the user.
If not, at least get
hello everyone,
i just finished the blog tutorial and started to write mit own code.
I got this controller:
?php
class DealerController extends AppController {
function index() {
$this-set('dealers',$this-Dealer-
find('all'));
}
+San Francisco
Dani Berg
On Sun, Feb 21, 2010 at 3:36 AM, marcusgoede goe...@web.de wrote:
New York, Miami or San Francisco!
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
hii all,
how to get a parent group of user. in cake 1.1.x I use
$someone = $aro-getParent($userId);
how do it in cake 1.2 ?
thx.. :)
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
Hola, estoy realizando una tienda web y para el tema de usuarios
estoy usando acl + auth con 3 tipos de usuario mas visitantes. A los
visitantes los controlo con el componente Auth y sus allow actions.
Y despues tengo los usuarios registrados, coordinadores, y
administrador. La duda surge a la
In your view, where you presents the suppliers, change your code as:
[code]
td?php echo $su['Dealer']['name']; ?/td
[/code]
Another thing is that you should conform to CakePHP standards, that is
- controllers are in plural Dealers, not Dealer.
Enjoy,
John
On Feb 22, 1:47 am,
OK, I'll give ti another try. If it doesn't work again, I'll post the
exact coe
On Feb 22, 2:28 am, Dr. Loboto drlob...@gmail.com wrote:
Review your code, it can have same errors like in this your example or
other misspellings. Be sure that yourcomponentname differs from
models names.
On
Avoid getting sued? Stop being an american work like a charm. ;)
(sorry, I could not resist)
On Feb 22, 8:39 am, Johnny Cupcake sparklew...@hotmail.com wrote:
OK, so after we have successfully built our modern, interactive
CakePHP website...where can we learn how to actually /run/ the
For my point of view, I want to be designing and building new code to
solve specific client problems. I do not want to be configuring
someone else's already poorly designed and implemented system and
trying to figure out how to solve problems that are created by using
said system.
So I tend to
I am currently having the exact same problem. I cannot move nodes
either up or down the tree. Using CakePHP 1.3
On Feb 22, 3:47 am, Ross Haggart ross.hagg...@googlemail.com wrote:
It is weird, i have multiple records and id 2 is the second record. The
first record is 'All Products', then i
should have guessed. I was referring to the component by $this-
componentName-function() inside of the component. Should have just
been $this-function()
Thanks!
On Feb 22, 10:16 am, dtirer dti...@gmail.com wrote:
OK, I'll give ti another try. If it doesn't work again, I'll post the
exact
My debug value is set to 2, and it's displaying all the queries,
except the one I need.
I have an Items Controller method that is calling this User Model
(Item belongsTo User):
function add_basic($email, $password)
{
$this-create();
Actually the stranger part of this might be this. In the dumped
queries, there is a select statement as follows:
SELECT `User`.`id`, `User`.`first_name`, `User`.`last_name`,
`User`.`email`, `User`.`password`, `User`.`phone`, `User`.`address`,
`User`.`city`, `User`.`zip`, `User`.`region`,
A bit more info. RequestHandler is loaded in AppController.
PostsController::index() has:
public function index()
{
$this-pageTitle = 'Blog';
if($this-RequestHandler-isRss())
{
$posts = $this-Post-find(
'all',
Lets say I am your customer and I want to develop a mail server or a blog
system.
You really give me all this words instead of offer me to at least try
Zimbra and Wordpress?
You should put the client interest at top.
Anyway, this kind of decision should be taken by an architect that will not
actually, disregard that. It's really just not executing the query,
and is returning false. Not sure why...
On Feb 22, 1:46 pm, dtirer dti...@gmail.com wrote:
Actually the stranger part of this might be this. In the dumped
queries, there is a select statement as follows:
SELECT
Hi there.
I'm having problems saving a model and it's related data.
a $this-Paper-saveAll($this-data); call returns false.
and later I figured out that a simple $this-Paper-Document-
save($this-data) is failing too.
the data is set correctly and there are no validationErrors.
any suggestion?
I'm working with ver 1.2.5. I've just tried the movedown function on
a new app and it worked fine, so there has to be something else
affecting this method in my app.
On 22 Feb, 16:12, Hiero v25me...@gmail.com wrote:
I am currently having the exact same problem. I cannot move nodes
either up or
First of all let me say I'm very new to CakePHP and complex PHP in
general. I based the blog I am working on off the tutorial on the
CakePHP website. I skipped creating ACL or a more complex management
of permissions because as of now the only people who will be posting
content will be Authorized
Seriously though, surely someone can answer this question?
If you can't point to a particular book, then what, in your
experience, are the 3-5 most important points when first launching
your Cake site?
(Aside from stop being an American that is.)
On Feb 22, 7:24 am, Martin Westin
Hi all,
This is my first post. I am new to CakePHP but I have experience
programming in PHP and Python/CGI. Anyways I want to get comfortable
switching over to CakePHP by developing a simple program that keeps
state - let's say a counter. The counter can be a button that
increases the state
I'm seeing some strange behavior with CakePHP, and I was hoping someone here
might be able to shed some light on it.
I have a production application that I've recently started managing. As
part of this process, I've created a staging host on an Amazon EC2 server.
I've done a production
Try $belongsTo instead of $hasOne.
$belongsTo = array('User');
On Feb 22, 7:03 pm, deek derek.bon...@gmail.com wrote:
First of all let me say I'm very new to CakePHP and complex PHP in
general. I based the blog I am working on off the tutorial on the
CakePHP website. I skipped creating ACL
It's still sessions: http://book.cakephp.org/view/173/Sessions
On Feb 22, 9:01 pm, Josh LaMar jola...@umail.iu.edu wrote:
Hi all,
This is my first post. I am new to CakePHP but I have experience
programming in PHP and Python/CGI. Anyways I want to get comfortable
switching over to CakePHP by
Rafael, por regla general el idioma del grupo es inglés... seguramente
ya te lo van a reclamar (inclusive a mi)
Entrando en materia, no necesariamente tienes que habilitar el admin
route, basta que le coloques permisos a cada grupo por cada una de las
acciones
On 22 feb, 06:02, Rafel
Have you checked to see if your data array is missing any required fields? If
so, it would still pass validation but fail at the database level. Also, is
your validation right (does it match what the database expects)?
Jeremy Burns
jeremybu...@me.com
On 22 Feb 2010, at 21:06, Lucca Mordente
I am not sure if it's the same problem i've got, but my issue was due
to not respecting naming convention. I missed model naming at plural.
Once I got everything to the single, it worked.
Hope it helped!
On Feb 4, 1:19 am, cricket zijn.digi...@gmail.com wrote:
cake_1.2.6
I'm thoroughly
Save query won't be executed at all if data do not pass validation.
Check $this-validationErrors
On Feb 23, 4:03 am, dtirer dti...@gmail.com wrote:
actually, disregard that. It's really just not executing the query,
and is returning false. Not sure why...
On Feb 22, 1:46 pm, dtirer
32 matches
Mail list logo