Hi,
I'd like to delete HATBM relation between a Person and a Contract.
The HATBM relationship is declared in the Person model and works fine
for retreiving the right person with all its contracts for example.
How should I submit things to my controller method in term of
data[ ? ] to just dele
Hi,
I am trying this from last three days but can not solve
problem...Please help me to find a solution to this problem.
I want to save a extra field in HABTM Join tabel.
1) tags : tag_id, tag_name .
3) blogs : id, title, body
4) entities_tags : tag_id, entity, entity_id .
I am using HABTM rela
Hi,
Need help here. How can i open a popup window without the default layout.
ie i need a blank popup window to open when clicked on a link.
Can anyone help me with this.
Thanx in advance..
Aneesh S
--~--~-~--~~~---~--~~
You received this me
Hi,
Need help here. How can i open a popup window without the default layout.
ie i need a blank popup window to open when clicked on a link.
Can anyone help me with this.
Thanx in advance..
Aneesh S
--~--~-~--~~~---~--~~
You received this me
Could you query again, but without all the table display stuff? You have 4
text boxes in a view and ... what?
What's the model name, and what models is it associated to (and how)?
Or is it 4 separate forms? 5?
On Wed, Dec 3, 2008 at 12:27 AM, Todd M <[EMAIL PROTECTED]> wrote:
>
> I'm creating a
before paginate() call:
$this->paginate = Set::merge($this->paginate,
array('Product'=>array(
'order' => array('Product.sortorder' => 'ASC')
));
On Tue, Dec 2, 2008 at 9:29 PM, Todd McGrath <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Question on multiple "order" clauses in paginatation.
>
> Qu
I'm creating a table where the top header row and left column are
text, but everything in the middle will be a text box. So if the table
was 5x5, there would be a 4x4 matrix of text boxes.
Each of these text inputs will represent a different entry to be saved
at the same model. My plan is to have
Re: #1
Good point.
Re: #2
I'll probably back burner it for now, but suppose I did want to 404/301,
only way to do it is in the controllers right? No easy way to do it in
routes.php?
--
View this message in context:
http://n2.nabble.com/routing-%E2%80%94-duplicate-content-and-SEO-concerns-tp160
Hi tobi_one,
I had the exact same problem and never got an answer:
http://groups.google.com/group/cake-php/browse_thread/thread/6a8bca31cbc37600/68463ae52185dd1a
http://groups.google.com/group/cake-php/browse_thread/thread/e96a87bb82267767
In the end, I abandoned the CakePHP ajax helper and did
Here is my simple example using pagination in search result
Search multiple fields using OR and return the result as paginated
view
http://www.php.net.my/forum/thread.php/14/3558/1#jump3
Just browse thru the code and see the example in screenshot.
--~--~-~--~~~---~--
I'll pass the code later. Didn't bring the code with me at the moment
On Dec 3, 10:42 am, AussieFreelancer <[EMAIL PROTECTED]>
wrote:
> I see in the screenshot you have used it, but I am still not sure how
> to get it working on my website.. I have tried hardcoding the sliders
> using normal prot
I see in the screenshot you have used it, but I am still not sure how
to get it working on my website.. I have tried hardcoding the sliders
using normal prototype, but it made no difference..
On Dec 3, 11:18 am, Azril Nazli <[EMAIL PROTECTED]> wrote:
> I also stuck with default CakePHP slider, in
1) I don't think it's a big problem. What about querystrings? Are you
going to restrict all unknown querystring parameters as well, because
Google doesn't ignore querystrings - just think of youtube urls and
the myriad of sites built with "non-seo" urls.
2) If you *really* need to do something, i
Hi,
Question on multiple "order" clauses in paginatation.
Question setup:
In controller:
var $paginate = array(
'Product' => array(
'limit' => 15,
'order'=>array('Collection.name'=>'asc',
'Product.productnumber'=>'asc')
I also stuck with default CakePHP slider, instead I hard code the
sliders using normal Prototype
http://mamakspot.my/node/2 ( see the screenshot # 3 )
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group
Why would anyone do that? It's a known black hat SEO tactic, among others
aimed at sabotaging competition as a means to improve one's own ranking. Not
that I have particular reason to be concerned that anyone is specifically
out to get me, but:
a.) It's still bothersome that the exposure is ther
Hello!
I'm playing with Cipher behavior (http://bakery.cakephp.org/articles/
view/cipher-behavior), but I have problems with recursive decrypt.
What I must change in this function, that will work with recursive
also?
/** Model hook to decrypt model data if auto decipher is turned on in
the
Hi all, I have just been playing with sliders, seeing how they work
and how to implement them, but the problem is that they just not
moving. I have tried using the ajax helper, and I have also tried
using the code from http://github.com/madrobby/scriptaculous/wikis/slider,
but they don't work. The
My Join table does have a primary key (http://i35.tinypic.com/
ofozko.jpg) & all tables are InnoDB to support transactions (http://
i36.tinypic.com/xqfhmx.jpg). However the overall type is MyISAM - is
this a problem? If so, can it be changed?
It would be nice if I could use saveAll() rather than
Check out containable in the cakephp book.
On Dec 2, 11:04 am, "David Coleman" <[EMAIL PROTECTED]>
wrote:
> Refer to
> :http://www.littlehart.net/atthekeyboard/2008/03/04/custom-cakephp-12-...
> ion-queries/
>
> These are the available options for customizing the paginate with find all
>
> /**
>
There is only a *problem* if there are links to the above urls. Why
would anyone do that?
On Dec 3, 6:24 am, RyOnLife <[EMAIL PROTECTED]> wrote:
> With some simple routing:
> Router::connect('/items/*', array('controller' => 'items', 'action' =>
> 'view'));
>
> URLs like this are possible:http://
With some simple routing:
Router::connect('/items/*', array('controller' => 'items', 'action' =>
'view'));
URLs like this are possible:
http://domain.com/items/slug-here
The problem, is that these are also valid pages that exactly duplicate the
above page:
http://domain.com/items/slug-here/unli
I have a complex database view that includes a large amount of joins
(6) and aggregation functions (eg. SUM). I know this already breaks
the MVC pattern, but I can't even imagine how it could be efficiently
implemented using Model relationships.
I have successfully implemented a read-only page o
Does your join table have a primary key?
If using MySQL are your tables InnoDB? (MyISAM tables do not support
transactions, so it might look like it's working, but you'll run into
problems).
On Dec 2, 12:12 am, jsmale <[EMAIL PROTECTED]> wrote:
> Hi,
>
> After extensive reading, I've followed te
Hello,
I would like to return some fields at my requests find ( 'all').
I wish I could define the model in order not to every request, return
the fields that I would like to see return.
I have belongsto class products and categories that hasmany products.
Class I and which belongto varieties and
On Tue, Dec 2, 2008 at 1:31 AM, deepesh <[EMAIL PROTECTED]> wrote:
>
> According to me Brian is right !!
>
> These type of errors come when allocated memory is lesser . So
> allocated memory in PHP INI needs to be increased
>
Well, yes and no. PHP is running out of memory but there may be somethi
Hi there,
i got a problem with cake, i m using the lastest version.
i got a form with 3 email fields. email1, email2, email3.
and in my table, i want to record each email.
i tried to make a validation rule for email.
i got :
var $validate = array(
'ema
Actually I didn't really mean ACL, just Users and Groups. You could
have a Group identified by the name "Friends", that was owned by the
User and had members that were the friends. Then you'd have another
Group identified by the name "Invitees" with the same sort of setup.
I have something like t
O_o
Don't know why, don't know how but...
this mod works.
no more error.
Thank you very much.
On 2 Dic, 15:46, Adam Royle <[EMAIL PROTECTED]> wrote:
> Is that all the code you've got in your beforeValidate function?
>
> I can't see where $validate is being modified in the above code,
> howeve
Look at my last post here
http://groups.google.com/group/cake-php/browse_thread/thread/b3ff9deff2d1ea1e
You probably need to do your 'save' then set the id from
getLastInsertedId() ...
On Dec 1, 9:12 pm, jsmale <[EMAIL PROTECTED]> wrote:
> Hi,
>
> After extensive reading, I've followed teknoid'
I would suggest looking at saveAll to do the save part, then to do
your addition you just need to make sure it's in the data.
That said, here's the way I handle adding a related record as shown in
your add() above:
function add() {
if (!empty($this->data)) {
On Tue, Dec 2, 2008 at 3:00 AM, Tóth Imre <[EMAIL PROTECTED]> wrote:
> I did it in a brue force way:), so i am intersted in a smooth solution
> too.:)
>
> 2008/12/1 dr. Hannibal Lecter <[EMAIL PROTECTED]>
>>
>> I'd like to know this too.. I didn't get the time to look into it in
>> detail, but whe
See the Multivalidatable behavior at
http://bakery.cakephp.org/articles/view/multivalidatablebehavior-using-many-validation-rulesets-per-model
Works well for this - I use it in my User model with great success.
On Dec 2, 5:59 am, sevanbed <[EMAIL PROTECTED]> wrote:
> i build a registration form
Is that all the code you've got in your beforeValidate function?
I can't see where $validate is being modified in the above code,
however you probably shouldn't iterate over every associated model -
you should just iterate over the current model. eg.
class AppModel extends Model {
function
i build a registration form which is working perfectly, but my password reset
form is not validating
the reason because i am validating 12 fields in my module.
so this code in my AppController is not running becusase it's validating the
whole thing.
if ($this->Affiliate->validates($this->data)
UPDATE
i get this warning from PHP
Warning (2): preg_match() [function.preg-match]: Delimiter must not be
alphanumeric or backslash [CORE\cake\libs\model\model.php, line 2282]
On 2 Dic, 15:31, Ernesto <[EMAIL PROTECTED]> wrote:
> The code listed above gets me an error.
>
> It modifies the $vali
The code listed above gets me an error.
It modifies the $validate array, deleting every rule related o the
last field.
I can't figure out where's the error
Help T_T
On 25 Nov, 15:18, Ernesto <[EMAIL PROTECTED]> wrote:
> Yeah man i almost did it :)
>
> here's a snippet, maybe some1 else needs t
Hi Sebastian,
I think you can even add multiple values to the array to allow different
date formats.
'rule' => array('date', array('dmy', 'ymd'))
Again, not 100% sure... ;-)
Regards
Guenther
Sebastian Göttschkes schrieb:
> Hi Guenther,
>
> this works quiet well, thank you. I'll add this to
Hi Guenther,
this works quiet well, thank you. I'll add this to the docs with an
example to provide an answer to anyone who is facing the same issue.
Regards,
Sebastian
On 2 Dez., 15:17, Günther Theilen <[EMAIL PROTECTED]> wrote:
> Hi Sebastian,
>
> I'm not 100% sure but this should work:
>
> '
Hi Sebastian,
I'm not 100% sure but this should work:
'date' => array (
array(
'rule' => array('date', array('dmy'))
etc.
Regards
Guenther
Sebastian Göttschkes schrieb:
> Hi Deepesh,
>
> thanks for your reply.
>
> Sure, I could make a custom validation rule, but as it is written in
To fix the TERM error wrap the cron job in a shell script with:
TERM=linux
export TERM
I think you can also set the path to php in the shell script with:
PATH=$PATH:/usr/local/bin
Alternately you can edit /cake/console/cake and add the full path on
line 32.
-Matt
http://www.pseudocoder.com
On
Does cake contain any functionality to pass as parametr in condition
function current time?
I need a query such as:
Select * from ... where exp_datetime < NOW()
If I passexp_datetime < NOW() in condition it won't work in MSSQL (it
used GETDATE())
I need a cross-db solution.
I can use application
Hi Deepesh,
thanks for your reply.
Sure, I could make a custom validation rule, but as it is written in
the doc, there is a way to use different time formats with the date
validation. Why dublicate it? The only thing I need is the key I have
to use in the array.
Regards,
Sebastian
On 2 Dez., 1
Its getting very difficult for me to pick up any specific unit testing
technology to implement in our ongoing projects, but thanks a lot for
clarification.
On Nov 28, 10:17 am, mark_story <[EMAIL PROTECTED]> wrote:
> I think selenium and the built in test suite have different goals in
> some resp
I can run a shell just fine on the command line, but when I run the
same command via cron, I get the following error:
tput: no terminal type specified and no TERM environmental variable.
/www/example.com/cake/console/cake: line 32: exec: php: not found
Here is the command I'm running:
/www/exam
Hello everybody,
Thanks very much everybody helps me.
I follow all steps that qwanta said and the pdf generate works! In my
view I put:
SetAuthor("KBS Homes & Properties a http://kbs-properties.com";);
$tcpdf->SetAutoPageBreak( false );
$tcpdf->setHeaderFont(array($textfont,'',20));
$tcpdf->xhe
Hi Sebastian ,
Why dont you try custom validation method
http://book.cakephp.org/view/150/Custom-Validation-Rules
you can easily make a function there and a small php code will be
required there to chk right format.
Best Regards,
Deepesh Gairola
Sebastian Göttschkes wro
Hi,
I want to use the "dmy"-value for the date validation. But I cannot
find which key I must use to pass the value.
Actually, my validation looks like this:
'date' => array (
array(
'rule' => 'date',
'messa
Are there any particular naming conventions for shells as there are
for models, views, and controllers?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@
Is it possible to use custom model methods in the interactive cake
console? Also, does anyone have a list of supported methods?
It would seem as though you cannot, but perhaps I'm doing it wrong.
The docs don't have much info about the console.
Thanks.
--~--~-~--~~~-
Hi Anja,
sorry, I can't help you with your specific problem.
But maybe you want to take a look at this:
http://www.cakephpforum.net/index.php?showtopic=27&st=0
With that, I set up Auth and ACL and it works like a charm.
(You should read the entire thread, though. There are some bugfixes.)
Regar
Try the example entitled "5.2.6.9 autoRedirect" in the Cookbook
http://book.cakephp.org/view/248/AuthComponent-Variables
I'm not answering to your question but it works fine.
hth,
Kyo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to t
Hello
i'm having some troubles with the "range" validation rule.
i have a form with a standard inputbox.
Here's the validation rule:
var $validate = array(
"Field" => array(
"ValueInRange" => array(
"rule" => array("range",0,100)
)
)
);
The inputbox std value is set t
Hi everybody,
Today I am stuck with setting up the permissions for Auth / ACL and I
have the suspicion it might not only be my tired brain causing the
problems. I try to set up my permissions again today, because some
things didn't work out as desired yesterday. So I did drop table on acos
and a
On Dec 2, 10:38 am, AD7six <[EMAIL PROTECTED]> wrote:
> gk wrote:
> > Hi there
>
> > I'm trying to work out how to get all the access control objects an
> > access request object can access - for example all the blog posts a
> > user can edit. Can anybody point me in the right direction on how t
normally i would read it out with php, put them in vars and addition
the values and resave them.
On Dec 2, 10:49 am, webscriptz <[EMAIL PROTECTED]> wrote:
> Sorry for that,
>
> I have a model Records and Timespans. DEBET and CREDIT have to be
> inserted in the records table but also in the Timesp
Sorry for that,
I have a model Records and Timespans. DEBET and CREDIT have to be
inserted in the records table but also in the Timespans table in DEBET
and CREDIT
The first is not a problem but the second is. IT has to be additioned
not just replaced by the latest.
function add() {
gk wrote:
> Hi there
>
> I'm trying to work out how to get all the access control objects an
> access request object can access - for example all the blog posts a
> user can edit. Can anybody point me in the right direction on how to
> do this? Thanks very much.
If you can't make some assumptio
I'd be interested to find out what is causing this problem, and
whether it is cake specific or not. Let us know when you've figured it
out.
Cheers
Adam
On Dec 1, 6:06 pm, Elricho <[EMAIL PROTECTED]> wrote:
> Hi Bakers,
>
> I have an odd problem with my cake application stalling/blocking.
>
> Bac
I did it in a brue force way:), so i am intersted in a smooth solution
too.:)
2008/12/1 dr. Hannibal Lecter <[EMAIL PROTECTED]>
>
> I'd like to know this too.. I didn't get the time to look into it in
> detail, but when I do and if I manage to find a solution I'll post it
> here.
>
> On Nov 29, 1
Hi,
I have the following situation:
A view where I call an AJAX helper with following options:
array('controller' => 'users', 'action'=>'login'),
'before' => 'startLoadingLogin()',
'complete' => 'endLoadingLogin()',
'failure' => 'alert(\'Error\')'
);
?>
Once the AJAX ca
Hi,
After extensive reading, I've followed teknoid's example (http://
teknoid.wordpress.com/2008/09/24/saving-extra-fields-in-the-join-table-
for-habtm-models/) on how to save an extra field on a join table.
Just one problem :( Here's the data array being saved:
--
Ar
62 matches
Mail list logo