i have a function in my controller called search(id) .
i want to pass a parameter id = abc/dce.
when i type the url, http://localhost/search/abc/dce. error comes.
anyone knows how to solve this problem
--~--~-~--~~~---~--~~
You received this message because you ar
looks like a resource problem when having too many results. Have you
tried to limit the results set in your findAll (case of Virginia) ?
Try by setting the "limit" parameter in the query.
I had that problem (not exactly), that was not a timeout issue but
rather a memory_limit (max 8 Gb) authorized
I apologize if the solution to my issue is to be found elsewhere.
I've tried to look but don't really know what I'm looking for and I
don't have a lot of time.
I have two problems and I think - but I'm not sure - they are
related. I have a client's production site running on a Cake-based
solutio
jQuery, jQuery, jQuery. Google would not be able to provide adequate
amounts of space for me to write up a complete list of reasons why
jQuery is the best library out there and it would probably also cause
your mail client to crash ; ).
So just trust me when I say that there is no JS library wi
Not again, it's always Cake vs. the world, obviously cake is far
better!
Can we just concentrate on the important things?
On Oct 2, 11:42 am, "John David Anderson (_psychic_)"
<[EMAIL PROTECTED]> wrote:
> On Oct 2, 2007, at 6:15 AM, Pisinho wrote:
>
>
>
> > A problem of CakePHP is a documentation
I prefer to upload in model (using a behaviour) and a image helper
that resizes and caches thumbs. There are excelents image helpers out
there (so you can resize in view), just choose one you like.
On Oct 2, 7:53 am, LW <[EMAIL PROTECTED]> wrote:
> For some reason I can't post in the original th
If you are on 1.2, read this article..
http://bakery.cakephp.org/articles/view/advanced-pagination-1-2
--~--~-~--~~~---~--~~
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@
Does anyone succeed to send a 'text' message with an attached file
using the Email component ?
I am using the cake1.2 from branch, and when attaching a file to a
simple text mail, the "content" does not appear, the attachment is
there.
If I remove the attachment, the content is there. Same result
Look at documentation, especially the $this->User->findAll method. Use
array('field1' => value, 'field1' => value) as first parameter of
findAll. That should be enough to accomplish this very basic query (as
well as very documented).
On Oct 2, 10:44 pm, sixlaneve <[EMAIL PROTECTED]> wrote:
> Any
Hy everybody. I have a big question and I need your HELP
I have a form, then I have a DIV and inside it I have a select that
will be replace by ajax.updater for a new select.
It do this fine. But when I want to submit the form with the new
values MOZILLA send nothing from the select tag.
Using IE
It might be that when you replace the original SELECT tag that the new
one isn't inserted properly into the DOM for firefox to send it back
to the server. I'm not sure how to do that since I don't rewrite
existing forms fields.
On Oct 2, 4:41 pm, Lir <[EMAIL PROTECTED]> wrote:
> Hello I want to
Depends how you update you select box with your code, I think FireFox
need to replace the complete select.
Look here, I think it's mentioned somewhere :
http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/
On Oct 2, 10:41 pm, Lir <[EMAIL PROTECTED]> wrote:
> Hello I wan
Maybe you can use the CURL library for this. Have a look to the
bakery, there is a Curl Model. CURL can handle FTP (not sure about
FTPS).
hope this helps.
On Oct 2, 10:40 pm, Levitoon <[EMAIL PROTECTED]> wrote:
> I had this task and I wonder if any one of U can help me to solve
> it ..??
> I need
I actually asked this same question in another thread:
http://groups.google.com/group/cake-php/browse_thread/thread/88a035716d5223cc#
The answer is the use CakePHP1.2 using the 'with' option.
Michael
On Oct 2, 1:51 pm, "R. Rajesh Jeba Anbiah"
<[EMAIL PROTECTED]> wrote:
> On Oct 2, 7:46 pm, Zol
Anybody uses CakePHP in SOA environment?
I want to write some REST based web services using CakePHP. To get it
going is pretty simple. I will use CakePHP model and controller. The
presentation layer is just XML or JSON so I don't need CakePHP's
views. I just have one small problem, CakePHP se
Your welcome mate!
Dan
--~--~-~--~~~---~--~~
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
Did you see this presentation:
http://www.cakephp.org/files/OCPHP.pdf
Dan
On 2 Ott, 22:09, Joshua Benner <[EMAIL PROTECTED]> wrote:
> It would be really cool to have an entire workable application written
> while I'm up front... and it's conceivable with bake. Hmm
>
> rtconner wrote:
> > Sh
Hello I want to submit a form that has a select which was updated
using ajax.updater
My Ajax.updater works fine. The problems is that in FIREFOX don't
recognize or don't get the name of the select tag and don't submit the
value or option.
Inside the form I have a where ajax.updater will replace t
I had this task and I wonder if any one of U can help me to solve
it ..??
I need to sincronize the files in one server usig an FTP cake
function... (if there is any) using the web page...
In other words the cake page must copy the files in one server to the
other one using just a function... or
On 10/2/07, cmbg <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> Is there a library or some add-on for cake that will help parse a text
> field to be used as conditions in a query?
>
> Like if someone wanted to look for a book with the following keyword
> string -- "New York" wiz* *way*
>
> the query b
Any working example...
I need to grab results from a table, with a query like
SELECT * FROM USERS WHERE x=firstvariable AND y=secondvariable;
any example?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP
Hi all,
Is there a library or some add-on for cake that will help parse a text
field to be used as conditions in a query?
Like if someone wanted to look for a book with the following keyword
string -- "New York" wiz* *way*
the query becomes like this
SELECT *
FROM books Book
WHERE Book.title='
It would be really cool to have an entire workable application written
while I'm up front... and it's conceivable with bake. Hmm
rtconner wrote:
> Show em bake and code generation :D
> My fav.
>
>
> >
>
--~--~-~--~~~---~--~~
You received this message beca
Thanks a lot rtconner!
Thats exactly what i needed!
Thanks again.
Auke
On Oct 2, 8:57 pm, rtconner <[EMAIL PROTECTED]> wrote:
> $view = ClassRegistry::getObject('view');
> $view->renderElement('element_name');
--~--~-~--~~~---~--~~
You received this message bec
If you want to change these in the controller, you can do the following in
your controller functions:
$this->set('meta_description', 'Your description...');
$this->set('meta_keywords', 'Your keywords...');
Then put the following in your layout:
Hope that helps...
Tim
On Oct 2, 8:17 pm, see
you can also get the source of the Bakery in the forge and look at how
it does the tag cloud (on a side note I think there is a tag cloud
article in the bakery)
On 10/2/07, sixlaneve <[EMAIL PROTECTED]> wrote:
>
> errr, where can I see the tag cloud?
>
> On 1 Ott, 02:28, cakeFreak <[EMAIL PROTECT
Show em bake and code generation :D
My fav.
--~--~-~--~~~---~--~~
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
set recursive = 2 in the model before you call the read function
On Oct 2, 12:11 pm, rpupkin77 <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a table structure that isn't exactly HABTM but is kind of
> close, here it is.
>
> I have users who all have one state (ie, MA, CA, NH), these users have
> p
$view = ClassRegistry::getObject('view');
$view->renderElement('element_name');
--~--~-~--~~~---~--~~
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 uns
Hi Andy,
I think you have to copy the default.thtml in the map layouts (cake/
libs/view/layouts) to your app/views/layouts/ map there you can eddit
the default header with the meta tags you would like.
Auke.
On Oct 2, 8:17 pm, seefai <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> May i know the way t
hi guys,
I need to use the renderElement in a helper i'm building.
( $this->renderElement )
can annybody help me on the road?
I'l get an fatal error: Fatal error: Call to undefined method
MultielementHelper::renderElement() in...//
[helper]
class MultielementHelper extends Helper{
/**
Hi All,
May i know the way to put meta tag keyword and description in every
page from my cakephp?
Like title i can set it in controller, but how about meta tag like
keyword and description of the site?
I cannot find any documents online that guide me on this, anyone
please help ...
Appreciate.
Hi,
I have a table structure that isn't exactly HABTM but is kind of
close, here it is.
I have users who all have one state (ie, MA, CA, NH), these users have
posts
so states have many users and users have many posts.
How do I get the states to show up when I am using the post model,
for exam
errr, where can I see the tag cloud?
On 1 Ott, 02:28, cakeFreak <[EMAIL PROTECTED]> wrote:
> download the cheesecake photoblog to see a live example in
> action:http://cheesecake-photoblog.org/
>
> Dan
>
> app... I want to pull out atag
>
> >cloud.
>
> > Basically, the page output is more or le
On Oct 2, 7:46 pm, Zoltan <[EMAIL PROTECTED]> wrote:
> What I used in a previous system where I managed tags manually, was
> add the weight to the link table (e.g. TABLE places_tags ( places_id,
> tags_id, weight) ).
This is exactly where I'm scratching my head now. While adding
anothe
On Oct 2, 12:46 am, gwoo <[EMAIL PROTECTED]> wrote:
> use beforeFitler
Oh, thanks. So, for filtering the unwanted exposures, I can use
beforeFilter. If I don't have to expose at least one of controller
methods, I may better ignore CakeSWXPHP (and use straight lib)--am I
right?
--
Email: rrj
http://groups.drupal.org/node/6414
roliver wrote:
I would mention and talk about the cool "automagic" features of cake?
findAll(), findBy___(), Model associations and how if they are setup
correctly can save a developer a ton of time in selecting and updating
data. Also the cake console i
http://groups.drupal.org/node/6414
roliver wrote:
I would mention and talk about the cool "automagic" features of cake?
findAll(), findBy___(), Model associations and how if they are setup
correctly can save a developer a ton of time in selecting and updating
data. Also the cake console i
I would mention and talk about the cool "automagic" features of cake?
findAll(), findBy___(), Model associations and how if they are setup
correctly can save a developer a ton of time in selecting and updating
data. Also the cake console is a good one to mention
BTW, I live in the phila area. W
Thanks John,
Thats probably the right way to takle this.
i do have a problem with the multidimensional array i get from the
database.
a.i.
[controler]
function index(){
// SET UP DATABASE DATA
$this->set('posts', $this->Post->findAll());
}
[/controler]
hi
Thanks for the suggestion. I will try ..do you think just putting
Grant's code in a component will work..I will give it shot..
Thanks
Ritesh
On Oct 2, 8:49 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> you would probably do better with a component if you're using 1.2
>
> On Oct 2, 1:4
I'll be presenting CakePHP at an education event in the Philadelphia
area. The event is run by a local PHP/Drupal user group and will
involve presentations of several PHP frameworks.
What do you guys think are the most important features of Cake to
highlight? Do you have any suggestions for p
On Oct 2, 2007, at 8:49 AM, Auke wrote:
>
> Hi guys,
>
> I have just started yesterday using cakePhp.
> I'm vamiliar with frameworks and always have used CodeIgniter.
> Now i have to use cakePhp because the company i will work for is using
> that.
>
> and now the question i have:
>
> I want to m
Hi guys,
I have just started yesterday using cakePhp.
I'm vamiliar with frameworks and always have used CodeIgniter.
Now i have to use cakePhp because the company i will work for is using
that.
and now the question i have:
I want to minimize the php code i use in my views by using chunks.
I ha
Thank you!
I was hoping it was avaliable because I wanted to see an example of
using a helper to create a form tag. There appears to be 2 ways,
AjaxHelper and FormHelper. The Ajax::form is all about ajax submission
and the Form::create appears to only allow you to set the model and
then it assume
On Oct 2, 2007, at 6:15 AM, Pisinho wrote:
>
> A problem of CakePHP is a documentation or HowTo o Tutorial.
Tutorial:
http://manual.cakephp.org/appendix/blog_tutorial
How-To's:
http://bakery.cakephp.org
That'll help some, but we're continually working on making things
better.
-- John
I have a simple tagging system set up like the blog example in the
manual:
TABLE places_tags ( places_id, tags_id ) and that works fine, I've
used this structure for several projects without problems, cake doing
all the set-up automatically - cake is amazing.
Now I'm trying to figure out how to a
erm, sorry, that should be underscores, not slashes:
// Replace underscores with dashes
$url = r('_', '-', $url);
(Slashes were for the other thread syntax)
Of course, you can have a more finely-tuned mapping than a simple s/r.
Hope this helps
On Oct 2, 12:45 pm, grigri <[EMAIL PROTECTED]> wr
On Oct 2, 2007, at 8:17 AM, macasek wrote:
>
> I see there is a 1.2.x api but is there also a manual under
> development?
Yep. It's nearing 150 printed pages, and an initial version is
already under review by the core development and documentation teams.
Stay tuned.
-- John
--~--~-
> copy app_controller.php to /app/app_controller.php
thanx so much , i didn't know that cakephp looks for another
app_controller.php in app directory
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" grou
A problem of CakePHP is a documentation or HowTo o Tutorial.
-Messaggio originale-
Da: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Per conto
di Matt
Inviato: martedì 2 ottobre 2007 7.56
A: Cake PHP
Oggetto: Re: CodeIgniter vs CakePHP
I've dabbled with CodeIgniter and it i
I see there is a 1.2.x api but is there also a manual under
development?
Thanks!
--~--~-~--~~~---~--~~
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 u
Hi,
Hi, thanks for your answers.
I know the upload behavior, that's what i based my own on, but it does
the resizing and stuff at save time, while I want to do it when the
data is pulled for display. I tried using afterFind but i'm having
trouble passing the results to the function:
function a
Another vote for jQuery... I just really like it's minimalism.
I know you don't get the AjaxHelper, but it's really easy to to get to
grips with. I spent ages trying to get some Autocomplete fields
working with the AjaxHelper and just couldn't get it working properly
(I wanted to show multiple fi
Hi,
I found the upload-behavior and based mine on it, but it saves resized
Images at the time it's saving the original.
I'm trying to implement it as a afterFind, but I'm having trouble
passing the results from the find operation to the afterFind function:
function afterFind(&$data){
In you $paginator you defined 'action' => 'list',
but in you router array('controller'=>'tickers','action' =>
'getListByLetter'),
It's not match i think.
On Sep 3, 7:19 pm, Charlie van de Kerkhof <[EMAIL PROTECTED]>
wrote:
> Hi all,
>
> I'm fiddling with the paginate Helper in the latest
For some reason I can't post in the original thread, so i had to open
a new one, sorry.
(if anyone knows why, please tell me)
I found the upload-helper and based my own on it, but i don' want to
do the resizing at save-time, so i tried to do it in an afterFind
function. I'm having trouble to with
Adwin ,
I've been using the 1.2 alpha and the nightly build for two projects.
There are a few differences between the two builds- alpha is about 2
months old now, the nightly build I used for two a recent projects are
about two weeks and 4 days old respectively.
So in short, yes, I find it stabl
Hmmm Anyone out there using baked tests in their testing
infrastructure? Or am I just overestimating the number of tests that
get written in "in the wild"? Or underestimating the need to write
terser posts? :-)
If anyone is effectively using the 1.2 testing structure, or the
predecessor s
Thanks for the response!!
Yes I did mean 'HABTM Through'. I did some quick looking around 1.1.17
and do not see support for it, I guess I will have to upgrade
Thanks
On Oct 2, 9:19 am, grigri <[EMAIL PROTECTED]> wrote:
> I think you mean 'HABTM Through' not 'HABTM Though', and in cake it's
I think you mean 'HABTM Through' not 'HABTM Though', and in cake it's
called `with`. This is for cake 1.2.x though, I have no idea about
1.1.x - stopped using it ages ago.
class User extends AppModel {
var $hasAndBelongsToMany = array(
'Group' => array( 'with' => 'Membership' )
);
}
On O
Hello All,
I am working on developing a data model and I have the need to create
a HABTM relationship that contains more information than just 2
foreign keys. The table I am looking for is essentially an assignment
table that maps groups to the item they are assigned to. The issue is
I need to ha
I saw an old post requesting "normal" form names from form->input and
form->hidden where the name had no
data[MODEL][fieldname] format instead of merely 'name=fieldname', and
it was asked why would anyone want that.
Here is why: Many ecommerce interfaces require form construction to
submit trans
hi Adwin,
I have been using cakephp 1.2 on my production server and didn't face
any problem. Although, I should mention that I don't use some of the
important features of CakePHP 1.2 such as ACL and Pagination. The
reason only being I upgraded from cakephp 1.1 and I was using some
plugins to hand
you would probably do better with a component if you're using 1.2
On Oct 2, 1:46 pm, bingo <[EMAIL PROTECTED]> wrote:
> hi Grant,
>
> Is your code in controller ?. If I put the code in the controller then
> my download works. But lot of my controller require download ability,
> so I am trying to
hi Grant,
Is your code in controller ?. If I put the code in the controller then
my download works. But lot of my controller require download ability,
so I am trying to create an independent download class in vendors
folder. Do you think making it a helper will be better ?
Thanks
On Oct 2, 8:0
I have the following:
if ( $extension == 'xls' ){
header("Content-type: application/vnd.ms-excel");
header("Content-Disposition: attachment; filename=\"$excel_filename
\"");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
hi,
In my view, there is an option to download data in a xml format. The
user clicks on the submits a form and a controller method is executed.
The controller calls a file utility (in the vendor folder) that sets
the header and sets the file content for download and at the script
calls die(); Alt
A friend told me about how you can call a stored procedure simply by
calling $this->stored_proc_name(), this works well, but I can't seem
to figure out the syntax it expects the parameters to be passed in in.
It doesn't want to take an array of key/values, and it doesn't want
just the data with no
With regards to the generating links, try creating an app_helper.php
file and overriding the url() method, like this:
class AppHelper extends Helper {
function url($url = null, $full = false) {
$url = parent::url($url, $full);
$baseUrl = parent::url('/', $full);
if (substr($url, 0
I've dabbled with CodeIgniter and it is a great framework but you
can't really compare it with CakePHP.
CI is a light weight MVC framework, which some people prefer, whilst
CakePHP is a heavier MVC framework with more "automagic" features.
On Oct 1, 7:28 pm, Matt <[EMAIL PROTECTED]> wrote:
> My
Wow! Color palette is beutiful but unreadable at all :-)
On 1 окт, 22:28, Matt <[EMAIL PROTECTED]> wrote:
> My boss recently suggested a move towards codeIgniter, and after a few
> minutes of searching, this blog helped me keep him at
> bay:http://www.zenperfect.com/2007/07/15/faceoff-codeignite
is it okay then to use 1.1.x and upgrade later on when i want to use
1.2 ?
are they going to be compatible ?
i just love the 1.2 's console ... :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
HI
I use the Calendar helper.
But for use this helper I need the date helper.
Where can I find it?
Many Thanks
Marco
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send emai
I have a component that uses $View->renderLayout() in a similar
fashion to the EmailComponent->__renderTemplates() function.
However, whenever I create a new view instance ( $View =& new
View($this->Controller); ) in my component, any css or javascript in
$scripts_for_layout does not get included
jQuery FTW!
I'm using jQuery to great effect on my own cake app (pastemonkey.org)
with no additional helpers, all the js code is in one file and using
jQuery selectors I carry out all my effects - gzipped and minified
with all my js, I'm only using 80kb total, more than prototype and
scriptalicio
76 matches
Mail list logo