For all the articles and/or other content on my website except the
latest article for php|architect you are free to write translations as
long as:
- You tell me where it will be published (so I may link it from my
site)
- You cite and link the source of the article
Regarding the php|architect on
Exactly what I was looking for - thanks!
On May 30, 2006, at 8:14 PM, Chris Partridge wrote:
>
> Well, the groups is messing with my suggested code, but you should get
> the idea.
>
>
> >
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Wow. I mean, wow. Clearly your head is a bit too big for it's own
good. I don't usually go this far, but it has at this point become
apparent to me that you've come here looking for a fight, and just need
to be put in your place. I have been developing software for over 12
years in as many dif
Kace,I rarely reply to threads on this list since it is more user to user support but you got my attention here, with what seems to be a blatant attack on the project and the developers I have working with me.
How many times have you sent an email to this list in that "month" that your where "study
Sorry for the confusing thread. I think I figured out what the
communication gap is. I said "key" meaning PHP associative array key as
in "key" => "value", I didn't mean primary DB key. All my primary keys
in the DB are called "id" and I've never had trouble with Cake
accessing that.
I resolved m
Good work h3rald
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For m
Well, the groups is messing with my suggested code, but you should get
the idea.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To un
Sorry, heres the correct code:
class SomeController extends AppController
{
var $components = array('RequestHandler');
function delete($id)
{
if($this->RequestHandler->isAjax()) { $this->autoRender=false;
}
}
}
--~--~-~--~~~---~--~~
You
gwoo wrote:
> >
> > function delete($id)
> > {
> $this->autoRender = false;
> > $this->Post->del($id);
> > }
> >
To do it only when it's an ajax call, use RequestHandler component.
class SomeController extends AppController
{
var $components = array('Req
To all who responded:
It is not true I don't understand MVC. In fact I have been using MVC
as the
basis of my own software development for past 5 years, and I have coded
in
many programing languages from Java to Python.
So I do understand what frameworks are for. Please stop projecting
your
ow
>
> function delete($id)
> {
$this->autoRender = false;
> $this->Post->del($id);
> }
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this gr
I am having trouble defining this releationship.
What would be the best way to define a relationship when the fk of my
database depends in a boolean value. if is true then the fk is equal
to table1 but if is false the fk is equal to table2.
This is my example
clients
id i(nt)
name (varc
I have a simple delete action that is being called by ajax that is
trying to render a view when called. How do I stop it from rendering,
and better yet, how do I stop it from rendering only if being called
by ajax?
function delete($id)
{
$this->Post->del($id);
Hi h3raLd
under what licences are you articles ? especially the php|architect's one ?
I'm thinking about starting a translation of it. Possible ?
olivvv
h3raLd wrote:
> I wrote an overview of CakePHP for php|architect, and it is now
> available online at A/R/T, php|architect's new online articl
Thanks Larry. It's on my to-do list :-) This is a good excuse.
Regards,
Langdon
Larry E. Masters aka PhpNut wrote:
> @John,
>
> Refactored:
>
> if (!empty($path[$count - 1])) {
> $title = Inflector::humanize($path[$count - 1]);
> }
>
> uses less code.
>
> @Langd
http://cakeforge.org/snippet/detail.php?type=snippet&id=68
Snippet updated. I put Larry's name in the "changes" box.On 5/30/06, John Zimmerman <
[EMAIL PROTECTED]> wrote:Very nice. Much better.I am updating the snippet.
I am also running the latest stable release listed on cakeforge. v1.1.3.296
I am using the 1.1 version.For the code you list below if you change it to the following you should be good to go. I have not tested this in 1.0 though.Overall the modification in my snippet and the code below could use a little optimization to reduce line count and unnecessary operations, but I t
@John,Refactored: if (!empty($path[$count - 1])) { $title = Inflector::humanize($path[$count - 1]); }uses less code.@Langdon,I suggest you get the latest release also.
-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpN
Hi John
Can you tell me which version of Cake this applies to? The display
function in pages_controller.php of Cake version 1.0.0.2378 looks like
the following, so I am unclear about how to apply the snippet.
function display()
{
if (!func_num_args())
{
If anyone is interested I added a snippet to cakeforge that is a modifcation to the pages_controller.php that displays the thtml files located in /app/views/pages.Basically it will make the titles look like
'Page Title'instead of'Page_title'Here is the link...
http://cakeforge.org/snippet/d
On 5/30/06, nate <[EMAIL PROTECTED]> wrote:
> This is an English mailing list! I expect *English* spam!
ROTFL
--
< If you know Red Hat you know Red Hat,
If you know Slackware you know Linux >
--~--~-~--~~~---~--~~
You received this message because you
I wrote an overview of CakePHP for php|architect, and it is now
available online at A/R/T, php|architect's new online article
repository. Nothing new if you're an expert baker, but hopefully a good
starting point for people new to Cake.
Announcement:
http://hades.phparch.com/hermes/public/viewnew
I think most of us who are looking at OceanCMS are just doing so to get a better feel for how things work.But yeah, notifying the developer via cakeforge would probably be a good idea.
On 5/30/06, Larry E. Masters aka PhpNut <[EMAIL PROTECTED]> wrote:
Have you thought of using the cakeforge project
Have you thought of using the cakeforge project to track these bugs and notify the developer?-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut
* @access public*/On 5/30/06, John Zimmerman [gmail] <[EMAIL PROTECTED]> wrote:
That would be ap
Thanks so much.
I'm waiting for your Cake-native Sybase and I'll very happy to baking
with Sybase-Driver.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-p
That would be app/config/bootstrap.php non core.php. Sorry.On 5/30/06, John Zimmerman [gmail] <[EMAIL PROTECTED]
> wrote:There is a define URL constant in app/config/core.phpMaybe changing that will help?
On 5/30/06, Sven <
[EMAIL PROTECTED]> wrote:Just for testing OceanCMS (v.0.0.2) I've install
There is a define URL constant in app/config/core.phpMaybe changing that will help?On 5/30/06, Sven <
[EMAIL PROTECTED]> wrote:Just for testing OceanCMS (v.0.0.2) I've installed cakephp RC6
(0.10.8.2152).After changing all the things mentioned here and in the release notes Igot a strange behavior w
upgrade to the latest release and the id notice should go away.
--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/
On 5/30/06, Nick <[EMAIL PROTECTED]> wrote:
Thanks!That helped - least got me on the right track.
The one thing about renderElement is that the element only gets
variables that have been made available to the view by the controller.
If you want to render an element inline (like in a loop), use:
element('element_name')); ?>
--~--~-~--~~~---~--~~
You received t
Okay, try adding an 'id' field to the join table (and making it a
primary key). Also, for your other models, make sure that the primary
key is 'id', or that you have var $primaryKey = 'custom_id'; defined in
the model class.
--~--~-~--~~~---~--~~
You received thi
Hi Andy,
have you already found out what that problem was? it seems that I
have the same problem and also no idea...
greets
felle42
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to th
thankyou to all your responses. I wasn't asking in order to solve a
particlar problem but just wanted to know how it all fits together.
I think its probably wise not to do this anyway, and work from the
controller when working with more than one model, but handy to know.
--~--~-~--~---
On May 30, 2006, at 9:15 AM, DJ Spark wrote:
>
> On the same topic, I'd like to hear some suggestions on Cake best
> pratices to build somethinig like a community website. Stuff like
> - Should I use Elements to render the different 'boxes' or should I
> use the requestAction to get the stuff
On the same topic, I'd like to hear some suggestions on Cake best
pratices to build somethinig like a community website. Stuff like
- Should I use Elements to render the different 'boxes' or should I
use the requestAction to get the stuff
- How to use 'Pages' in cake ? just pu them in the Pag
Thanks!
That helped - least got me on the right track. But now when I try to
add/edit a user using the scaffolding I get this error - any ideas as
to why that might be coming up. The error comes up near every button,
assuming that's cause they all require the ID. The User definitely has
an ID in
There are a few ways:
If It's a model associated with This Model (like hasMany, HABTM, etc)
, you would trye this in your controller:
$this->Model1->Model2->findAll()
If you want to do other operations, you might use
var $uses = array('Model1','Model2','Model3');
$this->Model1->findAll()
$this
Use the $uses var like this:$uses = array('Model1','Model2','Model3');You then have access to all these models like this:$this->Model1$this->Model2 (...)FFighter.
On 5/30/06, nate <[EMAIL PROTECTED]> wrote:
If the second model is associated with the first, it's a simple matterof $this->Second, wher
Okay, this is completely off-the-cuff, but it should at least get you
started:
class User extends AppModel {
var $hasAndBelongsToMany = array('RelatedUser' => array(
'className' => 'User',
'foreignKey' => 'user_id',
'associationForeignKey' => 'related_user_id',
Hi Everyone,
We're building a Social Network app using cake. I ran into a problem I
haven't been able to clear up from the documentation. I need to
establish an association among my members.
1. My PHP version: PHP Version 5.0.5-2ubuntu1.2
2. My Cake version: 1.0.1.2708
I have a Users table, and
Hey, very cool. As far as caching, check this out:
http://api.cakephp.org/basics_8php.html#2d90124e8b736fa0f94ee3ff2d0747af.
You can set the $target to 'public', and the $path to 'img/',
to store the cache file in the publicly-accessible images folder
(/app/webroot/img).
Or, you can store it in
If the second model is associated with the first, it's a simple matter
of $this->Second, where $this is the primary model, and Second is the
name of the associated model.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
Well, there's no "xmlrpc_encode_entities" function in Cake, so you
might want to double-check the code you're including. Chances are,
it's something that's getting loaded in both controllers.
--~--~-~--~~~---~--~~
You received this message because you are subscri
What are you trying to do exactly?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAI
hi there,
this is probably already been posted , but cant' find.
How do you access a Model from within another Model.
Thankyou.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this grou
Just for testing OceanCMS (v.0.0.2) I've installed cakephp RC6
(0.10.8.2152).
After changing all the things mentioned here and in the release notes I
got a strange behavior with my "base_url". All the links and
form-actions on my site now have the prefix
"http://www.oceancms-test.oceancms.co.uk/";
if you mean "xmlrpc_encode_entitites", so ...no it isn't...
if you mean the method i'm trying to call, yes it is.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email t
Is that defined somewhere in one of your classes?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send
Humm,
if(!defined('ROOT')) {
define ('ROOT', '../InfoManage');
}
Thanks,It works well now!
Thank you very much!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To po
thanks a lot..but i'd already tested it and this is what cakephp
returned:
Fatal error: Cannot redeclare xmlrpc_encode_entitites() (previously
declared in
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PH
$this->requestAction('/controller/action');
http://api.cakephp.org/class_object.html#6709fd2dd27063746f30f5c7168a82e9
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send ema
it should be:
$myObject = new Name();
$myObject -> methodName();
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from
It was just an error in the $belongsTo and $hasMany naming : The
uppercase was'nt uppercase
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroup
i have some controllers in my app, but in one ot then i need to call a
method from an another one.
i tried to instantiate an object of the controller I want to use, and
then call the right method but I didn't have any good result...
can anyone helps me?
thanks,
nicola
--~--~-~--~~
Hi,
Over at the good ol' weblog I've posted the quick instructions for
getting Sparklines and CakePHP to work together:
http://notes.we-run.com/sparklines-in-cakephp . If anyone has knowledge
as far as caching, that might be useful (will it handle images)?
Otherwise, check it out.
--~--~--
54 matches
Mail list logo