Re: CakePHP on AWS using Elastic Beanstalk

2012-11-20 Thread Bob King
Did you find answer to this or figure it out yet? I am having the same issue. I get a completely blank screen. On Wednesday, September 12, 2012 10:41:39 AM UTC-4, Mohammad Naghavi wrote: Hi everybody, I'm using the Amazon Web Services for the first time and want to launch an application

CakePhp 2.0: images, styles all break when installing in web server root

2012-06-28 Thread Bob Bowen
I've had a cake 2.0 install running for some time on my hosted web server. I installed it in /test/cakephp. All was well. I didn't have to use .htaccess or anything. And I haven't messed with APP_DIR, ROOT or WEBROOT_DIR. When using an Html-Image tage my images would have the path:

Re: CakePhp 2.0: images, styles all break when installing in web server root

2012-06-28 Thread Bob Bowen
is putting it in the root directory so different? It's not clear to me if I *need* to use mod_rewrite / .htaccess or if it's simply *recommended*. Because I don't think my provider is going to let me change this. Any help on this much much appreciated. Bob On Thursday, June 28, 2012 10:15:37 PM UTC+2

Re: CakeDC Search plugin for CakePhp 2.0, multiple models

2012-06-16 Thread Bob Bowen
', 'Secondary.other_field') Am Freitag, 15. Juni 2012 00:06:03 UTC+2 schrieb Bob Bowen: Is there any way to make this work? As I understand it you have to enable Search.Searchable in the $actsAs, and define $filterArgs for each Model, then add Search.Prg to $components and define $presetVars

CakeDC Search plugin for CakePhp 2.0, multiple models

2012-06-14 Thread Bob Bowen
. Is there any way to define a search form with one search field and have it look in various fields within various Models? Thanks Bob -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others

Caching (in 1.3) - $this-viewVars and many content - file size explodes

2012-01-25 Thread Bob
Hey everyone, the cached view in /tmp/cache/views, e.g. lets assume an *articles_index.php* always contain the $controller-viewVars = $this- viewVars = (…); this simply cointains an array with all the data the action uses (so the data which is submitted with $this-set). Sometimes this data is

RadioButton on Form

2010-08-08 Thread Fernando Z. Bob
Hello I have a page that contains two callings to generate radiobuttons. Like this: echo $this-Form-input('h2', array('type'='radio', 'options'=$Event1)); echo $this-Form-input('h2', array('type'='radio', 'options'=$Event2)); So, it generates two blocks of code with radiobuttons, but only one

Re: RadioButton on Form

2010-08-08 Thread Fernando Z. Bob
Thats correct. But I solved it with jQuery $(TD#colunah2 #MatriculaH2_).remove(); :-D thank you. 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 subscribed to the Google Groups CakePHP

Recursive find but not in all models

2010-06-22 Thread Fernando Z. Bob
Hi. I have a lot of relations between Users and another models. Like: User hasMany Download User belongsTo Company Company hasMany Product Download hasMany Type So I wanna use the find method, like $this-User-find('first', array('conditions'=bla bla bla)); But, it returns me ALL the data

Re: Is it possible to write common code in one function and i have to call that function when i was required

2010-04-20 Thread Fernando Z. Bob
Maybe you can do something like this: APP_CONTROLLER: function _mycode(){ $x = 8; $y = 10; return $x + $y; } USERS CONTROLLER: function something(){ echo $this-_mycode(); } function something_else(){ echo $this-_mycode(); } Bye Check out the new CakePHP Questions site http://cakeqs.org

Re: Inflections on CakePHP Interactive Bake Shell

2010-04-07 Thread Fernando Z. Bob
Well, it should. When i used those 1.2.x versions in my projects I had no problem with that. But nowadays, I`m full of headaches of trying to make Bake Shell recognize my Inflections in bootstrap.php (1.3 version). I don`t know if this is a problem of the core or what, but I prefer to make my

Paginator Helper - escape not working

2010-03-30 Thread Fernando Z. Bob
Hi everyone. My Paginator Helper is not working properly. Check out my code: ?php echo $this-Paginator-prev(' anterior', array(), null, array('class'='disabled'));? *OUTPUT: OK* ?php echo $this-Paginator-next('próximo ', array(), null, array('class' = 'disabled'));? *OUTPUT: NOTHING (blank

Re: ACL Component GOOD Tutorial, anyone?

2010-02-08 Thread Fernando Z. Bob
I am already having the same problem [?] Lot of tutorials, lot of knowledge but nothing that really explain everything about that. 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

PHP IDEs

2009-09-09 Thread Bob Albert
right now and looks to be geared toward Zend framework. Thanks, Bob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from

Re: PHP IDEs

2009-09-09 Thread Bob Albert
Tomas - thanks. I downloaded the Eclipse for PHP developers. Is that the same thing as adding PDT to Eclipse? Bob On Sep 9, 2009, at 9:00 AM, Tokasa wrote: Hi Bob, I use on my Mac Eclipse with PHP support. http://www.eclipse.org/pdt/ It does not come with build-in cakes support

Is it possible? Many domains, the same application

2009-09-02 Thread Fernando Z. Bob
Hello everyone. My name is Fernando. I`m from Brazil. This is my first message in the group. I have one question about cake-solutions. Let me explation what i mean. Imagine that i have the table Websites which contains 5 fields. id int(5) name varchar(100) domain varchar (255) country

Data validation in a different controller

2009-05-25 Thread Bob Mattax
to the referring Signup page. Is there just some set that I need to do? I'm sure its been done, and will be simple, I just can't figure out what it is. Any help would be appreciated. Thanks, Bob --~--~-~--~~~---~--~~ You received this message because you are subscribed

MySQL version to install

2009-04-14 Thread Bob Albert
recent, meaning 5.1, but curious if there are any compatibility issues for Cake or PHP. Thanks, Bob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php

Plugin images (any update?)

2009-02-03 Thread Bob Mattax
I've found a couple posts regarding plugin images, and didn't know if anything has changed in the last few builds. Is there a good post on the best way to have a plugin contain images that it needs? Thanks --~--~-~--~~~---~--~~ You received this message because

Bake scripts without shell access

2009-01-14 Thread Bob Albert
in Dev? Also it looks like there might be some tools for Bake that one can install on these hosting companies that allow you to use Bake scripts via the browser like webbaker? Thanks, Bob --~--~-~--~~~---~--~~ You received this message because you

Re: multiple httpd.conf files

2009-01-14 Thread Bob Albert
It looks like your httpd.conf file is correct. You just want the AllowOverride set to All. I had a very similar problem with my Mac. I'm using MAMP install, but i think your problem could be the .htaccess file. In the 1.2 generic folder that you use as the basis of your app has a

REST routing

2008-11-17 Thread Bob Mattax
I am trying to take advantage of the default rest routing, and can't seem to get it to work. I think the issue is that my ID I'm passing isn't numeric. 1) Is there someway to override the ID must be numeric regex if I'm using an email as an id instead? 2) Is there a list of the various routes

Using maven for deployment

2008-10-10 Thread Bob Mattax
Has anyone experimented with using maven to bundle their website, and accumulate dependencies? I'm being asked to do so for our website, as all our other projects are integrated into this deployment strategy. Thanks! --~--~-~--~~~---~--~~ You received this

Re: Using pagination helper on a view element

2008-06-24 Thread bob
Anyone have an answer to this problem? Thanks On Apr 7, 7:19 pm, Juan Luis Baptiste [EMAIL PROTECTED] wrote: Hi, I'm trying to make a view element and reuse it in various  views. The element uses the pagination helper, the problem is that the element can't see the paginator helper object:

Re: Where to put new functions

2008-06-05 Thread Bob Mattax
Is that *really* where this belongs? Shouldn't this be treated as a helper? http://book.cakephp.org/view/98/helpers On Jun 5, 9:36 am, dr. Hannibal Lecter [EMAIL PROTECTED] wrote: Anything you put in your ~/app/bootstrap.php will be available everywhere. On Jun 5, 3:17 pm, moment11 [EMAIL

Javascript library + images + etc as Vendor?

2008-06-05 Thread Bob Mattax
I'm trying to figure out where to put this javascript library and its associated files. I can't seem to figure it out. I put it in the app level vendor directory, but then I'm not sure how to access the images. I tried looking at the vendor examples, but they're pretty empty. Thanks bob

ACL for Cake 1.2

2008-04-08 Thread bob
in Cake 1.2, I need some clarifications on ACL: In the following code segment: $aro-create(); $aro-save(array( 'model'='User', 'foreign_key'=null, 'parent_id'=null, 'alias'='Admin')); 1) what does the model refer to? 2) foreign key? 3) do we need to specify the id?

Re: ACL for Cake 1.2

2008-04-08 Thread bob
Does the Alias have to be unique? If so, then I was thinking that the alias should be the Id of my Users table, not the name (which is not unique). In this case, would the alias and the foreign_key of the aro be the same? On Tue, Apr 8, 2008 at 12:43 AM, bob [EMAIL PROTECTED] wrote: in Cake

Re: ACL for Cake 1.2

2008-04-08 Thread bob
! On Tue, Apr 8, 2008 at 5:11 AM, bob [EMAIL PROTECTED] wrote: Does the Alias have to be unique? If so, then I was thinking that the alias should be the Id of my Users table, not the name (which is not unique). In this case, would the alias and the foreign_key of the aro be the same

Re: ACL for Cake 1.2

2008-04-08 Thread bob
, 2008 at 7:11 PM, bob [EMAIL PROTECTED] wrote: can the Model be null. I only need the ACL to prevent guests and users from accessing the Admin pages, and allow admin to access the Admin pages. In this case, I have many controllers with Admin pages. Should I define ACOs for each controller

gmail StartTLS problem

2008-04-04 Thread bob
I am running cake 1.2 on XAMPP on Windows XP. I am trying to test SwiftMailer integration with Cake using Gmail Here is my code $this-SwiftMailer-connection = 'smtp'; // default and thus you don't have to specify it $this-SwiftMailer-smtp_host = 'smtp.gmail.com'; $this-SwiftMailer-smtp_type =

Re: WAMP and CakePHP

2008-04-03 Thread bob
try xampp On Thu, Apr 3, 2008 at 1:25 PM, Stephen Orr [EMAIL PROTECTED] wrote: I second the recommendation of Wampserver. Only problem I've found is that it doesn't include a mail server by default - which means, if you're running under Vista, you can't send emails from your localhost.

paginate a subset of data

2008-04-01 Thread bob
using pagination in cake 1.2, how do you paginate a subset of data in a model? --~--~-~--~~~---~--~~ 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

pagination help

2008-03-31 Thread bob
I am using cake 1.2 I am trying to use paginate, but the problem i am having is that my URL is localhost/controller/action/param1/param2 so when i try to do echo $paginator-numbers(); in my view, I get the URL localhost/controller/action/page:2 instead of

$_FILES + cake 1.2 question

2008-03-29 Thread bob
hi does anyone know if i have the following input input type=file name=userfile I can do this $_FILES[userfile] But if I have do this: $form-file(userfile); Then, the following does not work $_FILES[{data[User][userfile]}] what's wrong? thx

jsn imageshow for cake

2008-03-24 Thread bob
does anybody know any cakephp components similar to JSN ImageShow? http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,3585/Itemid,35/ thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

session timeout

2008-03-10 Thread bob
how do you set the session timeout to unlimited or to a very long time? is it conventional to set the timeout to unlimited? any side effects? or is it just dependent on the specific application? --~--~-~--~~~---~--~~ You received this message because you are

back button - how to handle in cake

2008-03-10 Thread bob
i save a form data in page1. it redirects to page2. if i press the back button in the browser, all the data is still there. how do i detect that the back button was just pressed, so i can set $this-data to null? Can I use the afterFilter() and set $this-data to null there?

Re: back button - how to handle in cake

2008-03-10 Thread bob
solution? On Mon, Mar 10, 2008 at 2:43 AM, bob [EMAIL PROTECTED] wrote: i save a form data in page1. it redirects to page2. if i press the back button in the browser, all the data is still there. how do i detect that the back button was just pressed, so i can set $this-data to null? Can I use

refer to another model in a model

2008-03-09 Thread bob
I have 2 tables User and User2. In my User model, how do I refer to a column in User2? thanks for example, if i have User and User2, and i want to refer to User2 in User model: ?php class User extends AppModel { var $name = 'User'; function validateLogin($data) { $user =

multiple submit buttons in a form

2008-03-08 Thread bob
How can I have multiple submit buttons in a form? echo $form-create('Form', array('url'=$url)); echo $form-submit('Edit',array('div'=false,'name'='a','value'='edit')); echo $form-submit('Submit',array('div'=false,'name'='a','value'='submit')); echo $form-end(); in the above, how do i

guid versus auto increment integer

2008-03-07 Thread bob
Not really a cake question, but i think some of you might have the same question: for mysql database tables, for the unique primary key index, should i use a 32 character GUID, or an auto increment integer? Which is better? --~--~-~--~~~---~--~~ You received this

textarea

2008-03-07 Thread bob
In a textarea, how do you retain the spacings and carriage returns when you save to the database or output in the view? for example, if i enter first line third line I want to output to the user keeping all the carriage returns. But right now, it just outputs first line third line

Re: spanning a form

2008-03-06 Thread bob
it seems i have to use sessions to do this? On Wed, Mar 5, 2008 at 11:46 PM, bob [EMAIL PROTECTED] wrote: so in my add1 controller, i serialize the data. But how do i pass this to the second form as a hidden field? Would I need to append this to the URL as a parameter? Or would i need

spanning a form

2008-03-05 Thread bob
In cakephp 1.2, if i submit a form from the view to the controller, the data will be stored in $this-data. But If I will to span the form across 2 views, how would I keep the form data from the first view? For example, if I have controller A and add1 and add2 as the actions. I want to set it up

Re: Which CakePHP version should I use?

2008-03-05 Thread bob
if you just starting to learn cake, better to jump in right away with cakephp 1.2. this is what i did. i started with 1.1, but quickly learned that going to 1.2 would be a pain. so if u are just starting, might as well go to 1.2 On Wed, Mar 5, 2008 at 2:36 AM, Dardo Sordi Bogado [EMAIL PROTECTED]

Re: spanning a form

2008-03-05 Thread bob
how do you serialize data? thanks. On Wed, Mar 5, 2008 at 3:30 AM, Dardo Sordi Bogado [EMAIL PROTECTED] wrote: You can use Session or an hidden field in the form with the serialized data, then in add2 unserialize it. On Wed, Mar 5, 2008 at 9:10 AM, bob [EMAIL PROTECTED] wrote: In cakephp

craigslist email feature in cake

2008-03-05 Thread bob
i wanted to create a craigslist like email forwarding component for cake, where the component can dynamically create (and delete) an email address that forwards to the user's real email. anyone know any cake components to do this? or what would be the steps I need to do? thanks

Re: spanning a form

2008-03-05 Thread bob
PROTECTED] wrote: http://us3.php.net/serialize On Wed, Mar 5, 2008 at 1:34 PM, bob [EMAIL PROTECTED] wrote: how do you serialize data? thanks. On Wed, Mar 5, 2008 at 3:30 AM, Dardo Sordi Bogado [EMAIL PROTECTED] wrote: You can use Session or an hidden field in the form

mass email component for cakephp

2008-03-04 Thread bob
hi i need a cakephp email component that can do multi threaded emailing, or a scheduling system. Preferably the email component can scale well to send 1000+ and even 1+ emails per few hours (or day if this is the best it can do). Does anybody know if the CakePHP emailcomponent has been tested

Re: Complex findAll/Count, and specifying conditions on the HABTM

2008-03-04 Thread Bob Mattax
Here is a link to the code for my classes. http://bin.cakephp.org/saved/29458 On Mar 2, 8:04 pm, Bob Mattax [EMAIL PROTECTED] wrote: I'm trying to write an app for managing some of rental properties. Here is a basic outline of the models I'm trying to work with right now.  I'm working

Re: Complex findAll/Count, and specifying conditions on the HABTM

2008-03-04 Thread Bob Mattax
I just noticed I copied something wrong. This is correct: http://bin.cakephp.org/saved/29464 On Mar 4, 8:25 pm, Bob Mattax [EMAIL PROTECTED] wrote: Here is a link to the code for my classes.http://bin.cakephp.org/saved/29458 On Mar 2, 8:04 pm, Bob Mattax [EMAIL PROTECTED] wrote: I'm

redirect to original page

2008-03-03 Thread bob
If I click on a link in my view, it redirects to the login page (i check if logged in via beforeFilter() in the controller). After i login, i want to redirect to the page that I clicked on, not another page. how do i do this in cakephp 1.2? thanks

Re: redirect to original page

2008-03-03 Thread bob
Should i use a session to save the original link? Or is there another better way to do this? On Mon, Mar 3, 2008 at 12:44 AM, bob [EMAIL PROTECTED] wrote: If I click on a link in my view, it redirects to the login page (i check if logged in via beforeFilter() in the controller). After i login

helper help needed

2008-03-02 Thread bob
?php class ParserHelper extends AppHelper { function blah($text) { return $text; } } ? i put this code in app/view/helpers/parser.php from my view, i do echo $parser-blah('test'); and also the var $helpers=array('Parser'); But this is returning *Notice* (8)

Re: helper help needed

2008-03-02 Thread bob
ok got it. thanks On Sun, Mar 2, 2008 at 6:05 PM, Walker Hamilton [EMAIL PROTECTED] wrote: you put var $helpers = array('Parser'); in the locations_controller.php file, yes? If you're calling the helper from the view as $parser-blah. Fine. It should work. If you need to call it from the

Complex findAll/Count, and specifying conditions on the HABTM

2008-03-02 Thread Bob Mattax
. If you need more specfics, like the actual models I have set up, I can probably put together a bin for it all. Thanks, Bob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email

Table-less model associations

2008-02-25 Thread Bob Mattax
of hasOne, belongsTo associations between table-less models. I have some more models available via the API that I would like to explore having associations to as well. Is there any way to do this? Thanks, Bob --~--~-~--~~~---~--~~ You received this message because you

save to database in component

2008-02-24 Thread bob
how do i save to a database in a component in cakephp 1.2? for example: in my component, i have var $uses = array('MyModel'); then I do $this-MyModel-save(.)... how do i do this? thanks --~--~-~--~~~---~--~~ You received this message because you are

radio button

2008-02-10 Thread bob
In cakephp 1.2, how do i determine which radio button the user selected? input type=radio checked=checked name=data[List] id=ListA_ /label for=ListA_ A/label input type=radio name=data[List] id=ListB_ /label for=ListB_ B/label --~--~-~--~~~---~--~~ You received

Re: radio button

2008-02-10 Thread bob
in the controller i mean On Feb 10, 2008 7:45 PM, bob [EMAIL PROTECTED] wrote: In cakephp 1.2, how do i determine which radio button the user selected? input type=radio checked=checked name=data[List] id=ListA_ /label for=ListA_ A/label input type=radio name=data[List] id=ListB_ /label

newbie how to add javascript to just one view

2008-02-04 Thread bob
i have a javascript .js file that i want to add to just one of my views, (not in the default layout). how do i do this? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group,

Re: newbie how to add javascript to just one view

2008-02-04 Thread bob
similarly, for css files? On Feb 4, 2008 12:37 PM, bob [EMAIL PROTECTED] wrote: i have a javascript .js file that i want to add to just one of my views, (not in the default layout). how do i do this? thanks --~--~-~--~~~---~--~~ You received this message

Re: newbie how to add javascript to just one view

2008-02-04 Thread bob
() and $css-link() helpers, respectively. bob wrote: similarly, for css files? On Feb 4, 2008 12:37 PM, bob [EMAIL PROTECTED] wrote: i have a javascript .js file that i want to add to just one of my views, (not in the default layout). how do i do this? thanks

javascript error message

2008-01-28 Thread bob
In latest release of Cakephp 1.2, i am trying to do echo $javascript-link(array('prototype','scriptaculous.js?load=effects')) in my default.ctp file in layouts folder But i get the following errors: Undefined variable: javascript [*APP\views\layouts\default.ctp*, line *43*] *Fatal error*: Call

newbie query question

2008-01-26 Thread bob
I have a Listings table and another Categories table, and Lists hasMany Categories. I am trying to write a cake query where it finds all lists in a certain category. $listings = $this-Listing-findAll( array('Category.category_id'=$category_id) ); this returns an error. Also, if I do

Re: fileinfo help needed

2008-01-25 Thread bob
No, its still not working I might just move to Ubuntu Linux to see if that solves the problem... On Jan 24, 2008 8:46 AM, b logica [EMAIL PROTECTED] wrote: On Jan 24, 2008 12:53 AM, bob [EMAIL PROTECTED] wrote: Just magic.mime Maybe it's a Windows thing. Try adding the following

enum

2008-01-25 Thread bob
Does Cake support enum types for tables? How would you get the enum values from the model or controller? Any examples? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group,

hasMany question

2008-01-25 Thread bob
i have a User table with 'id' and 'name' columns, and a Email table with 'user_id' and 'email' columns. if i have User hasMany Email, and in my UsersController, i do $this-User-findByEmail(...), it returns all of 'id', 'name', 'user_id', and 'email' columns. how do i make it so that it only

newbie syntax question

2008-01-24 Thread bob
what does this mean Post.created = . date('Y-m-d', strtotime(-2 weeks) the date is greater that 2 weeks ago? what does the period . mean in this case? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

cakephp manual question

2008-01-24 Thread bob
This is a newbie question. In the cakephp manual ( http://manual.cakephp.org/chapter/models) $this-data['Comment']['post_id'] = $post_id; //Because our Post hasMany Comments, we can access //the Comment model through the Post model: $this-Post-Comment-save($this-data);

Re: cakephp manual question

2008-01-24 Thread bob
Another related question: in their post tag HABTM example, in the Post model, they defined a HABTM for Tag. For the Tag model, we would need a HABTM for Post as well correct? On Jan 24, 2008 2:38 AM, bob [EMAIL PROTECTED] wrote: This is a newbie question. In the cakephp manual ( http

Re: join

2008-01-24 Thread bob
sorry, please ignore this dumb question On Jan 23, 2008 10:39 PM, bob [EMAIL PROTECTED] wrote: I have the tables lists and categories and lists hasMany categories. How do i create a join statement that finds all lists in a specific category

parameters help needed

2008-01-23 Thread bob
if i have the url as follows localhost/controller/action/param1/param2 and i also have a form and a submit button and i am doing a POST. If i press the submit button, the url becomes localhost/controller/ action/ (without the param1 and param2) How do i keep the parameters intact after the

Re: fileinfo help needed

2008-01-23 Thread bob
Sorry, you're right, var_dump($handle) returns false... I can open the magic file. No, open_basedir and safe_mode are not enabled. Should I enable them? What should i set them to? thanks. On Jan 22, 2008 8:51 PM, b logica [EMAIL PROTECTED] wrote: On Jan 22, 2008 5:17 PM, bob [EMAIL PROTECTED

Re: problems with cake and swfupload

2008-01-23 Thread bob
where would you find the error logs? On Jan 22, 2008 8:34 PM, b logica [EMAIL PROTECTED] wrote: On Jan 22, 2008 4:44 PM, Novice Programmer [EMAIL PROTECTED] wrote: Hello guys, I am trying to get the swf upload work with cake. Before baking it, I just gave a try to the demos on the

Re: fileinfo help needed

2008-01-23 Thread bob
() [function.finfo-open http://php.net/function.finfo-open]: Failed to load magic database at 'C:\magic.mime'. What does this mean? On Jan 23, 2008 12:13 AM, bob [EMAIL PROTECTED] wrote: Sorry, you're right, var_dump($handle) returns false... I can open the magic file. No, open_basedir and safe_mode

Re: fileinfo help needed

2008-01-23 Thread bob
No I've been googling for solutions but there is no one with similar situation... On Jan 23, 2008 6:01 AM, Chris Hartjes [EMAIL PROTECTED] wrote: On Jan 23, 2008 3:38 AM, bob [EMAIL PROTECTED] wrote: What does this mean? I think it means that this is not a Cake problem, but a fileinfo

Re: fileinfo help needed

2008-01-23 Thread bob
agree .. so any recommendation on where to get help? On Jan 23, 2008 12:27 PM, Chris Hartjes [EMAIL PROTECTED] wrote: On Jan 23, 2008 3:10 PM, bob [EMAIL PROTECTED] wrote: No I've been googling for solutions but there is no one with similar situation... Fair enough...but would you

Re: fileinfo help needed

2008-01-23 Thread bob
what OS are you guys using? On Jan 23, 2008 12:34 PM, Samuel DeVore [EMAIL PROTECTED] wrote: might start with http://www.php.net/support.php and the php general list there Sam D On Jan 23, 2008 1:32 PM, bob [EMAIL PROTECTED] wrote: agree .. so any recommendation on where to get help

Re: fileinfo help needed

2008-01-23 Thread bob
Just magic.mime On Jan 23, 2008 7:46 PM, b logica [EMAIL PROTECTED] wrote: On Jan 23, 2008 3:38 AM, bob [EMAIL PROTECTED] wrote: Here is something interesting: 1) if i have the following: $handle = finfo_open(FILEINFO_MIME); The output i get is finfo_open() [function.finfo

join

2008-01-23 Thread bob
I have the tables lists and categories and lists hasMany categories. How do i create a join statement that finds all lists in a specific category? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To

fileinfo help needed

2008-01-22 Thread bob
Hi I am having trouble getting the PHP PECL fileinfo component to work. I am using Cakephp 1.2, XAMPP in WIndows Vista environment. I have the following code: $file = C:\xampp\htdocs\app\webroot\pics\file.jpg; $handle = finfo_open(FILEINFO_COMPRESS,'c:/magic');// FILEINFO_COMPRESS,c:/magic);

Re: fileinfo help needed

2008-01-22 Thread bob
: On Jan 22, 2008 4:24 AM, bob [EMAIL PROTECTED] wrote: Hi I am having trouble getting the PHP PECL fileinfo component to work. I am using Cakephp 1.2, XAMPP in WIndows Vista environment. I have the following code: $file = C:\xampp\htdocs\app\webroot\pics\file.jpg; $handle

Re: fileinfo help needed

2008-01-22 Thread bob
var_dump() returns null. debug() does not return any extra useful info. [sigh...] On Jan 22, 2008 12:08 PM, b logica [EMAIL PROTECTED] wrote: On Jan 22, 2008 2:41 PM, bob [EMAIL PROTECTED] wrote: Thanks for your reply. I don't think it is case sensitive, nor do i think that the backslash

Re: fileinfo help needed

2008-01-22 Thread bob
anybody face a similar issue? On Jan 22, 2008 2:17 PM, bob [EMAIL PROTECTED] wrote: var_dump() returns null. debug() does not return any extra useful info. [sigh...] On Jan 22, 2008 12:08 PM, b logica [EMAIL PROTECTED] wrote: On Jan 22, 2008 2:41 PM, bob [EMAIL PROTECTED] wrote

links problem

2008-01-15 Thread bob
in my view i have many links. how do i tell from my controller which link a user clicked on? i do not want to use the URL (ie localhost/blah/ this_link_was_clicked_on). Anybody know how I could achieve this using hidden parameters? Thanks --~--~-~--~~~---~--~~

displaying data in view

2008-01-15 Thread bob
I have a model PhoneNumbers. In my controller, I have this code: $Phones = $this-PhoneNumber-findAllByUserId($username); In my view, I would like each phone number to be displayed in a textbox (one phone number per textbox). How would I do this if I used $this-data['phones'] = $Phones Thanks

Custom URL format

2008-01-07 Thread bob
I am trying to develop a site with user membership. In cakePHP 1.2, is it possible to set up the URL so that it is in the following format: http://localhost/username or /app/username For example, i could have http://localhost/user1 Or does it have to be strictly in this format:

Dynamic Subdomains

2008-01-07 Thread bob
How do you setup a dynamic subdomain in CakePHP? Is there any modifications in Apache that I have to make? I am using Xampp. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this

Re: More HABTM : Adding another model to the filtered findAll()

2007-10-24 Thread Bob Mattax
If I just make the query, will I still have the same abilities for pagination? I thought I remembered reading that I wouldn't. On Oct 24, 5:36 am, dardosordi [EMAIL PROTECTED] wrote: Maybe it's just easier to make your query. On Oct 23, 12:20 pm, Bob Mattax [EMAIL PROTECTED] wrote: So

Re: More HABTM : Adding another model to the filtered findAll()

2007-10-23 Thread Bob Mattax
So, I've continued reading, and to say that I've read all the threads on this topic would be a lie, but I'm trying. Any help would still be appreciated. On Oct 22, 8:27 am, Bob Mattax [EMAIL PROTECTED] wrote: I've looked through and tried all of the HABTM filtering discussions, and have tried

More HABTM : Adding another model to the filtered findAll()

2007-10-22 Thread Bob Mattax
of including all the joins I would have expected. Any help would be appreciated. Thanks, Bob --~--~-~--~~~---~--~~ 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

Re: How do I make a Behavior?

2007-07-31 Thread Bob Voorneveld
What stupid, thanks for your help! 2007/7/31, Dr. Tarique Sani [EMAIL PROTECTED]: On 7/31/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Query: test Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version

New to Cake

2007-07-19 Thread Bob
I am attempting to start Cake for the first time. I get the following errors when trying to open: Warning: mysql_connect(): Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/b/r/

Re: New to Cake

2007-07-19 Thread Bob
Thanks for the reply. I set up the database this morning and it is up and running, but still unable to connect. Any other suggestions? On Jul 19, 11:37 am, John David Anderson (_psychic_) [EMAIL PROTECTED] wrote: On Jul 19, 2007, at 10:28 AM, Bob wrote: I am attempting to start Cake

Re: New to Cake

2007-07-19 Thread Bob
: Did you config the configure/database.php file? On Jul 19, 10:43 am, Bob [EMAIL PROTECTED] wrote: Thanks for the reply. I set up the database this morning and it is up and running, but still unable to connect. Any other suggestions? On Jul 19, 11:37 am, John David Anderson

Re: New to Cake

2007-07-19 Thread Bob
you are correct! On Jul 19, 12:30 pm, Christopher E. Franklin, Sr. [EMAIL PROTECTED] wrote: You should not include your password :) On Jul 19, 10:28 am, Bob [EMAIL PROTECTED] wrote: yes, here it is. class DATABASE_CONFIG { var $default = array('driver' = 'mysql

Re: New to Cake

2007-07-19 Thread Bob
127.0.0.1? please explain. thanks On Jul 19, 12:31 pm, John David Anderson (_psychic_) [EMAIL PROTECTED] wrote: On Jul 19, 2007, at 11:28 AM, Bob wrote: yes, here it is. class DATABASE_CONFIG { var $default = array('driver' = 'mysql

Re: New to Cake

2007-07-19 Thread Bob
Hartjes [EMAIL PROTECTED] wrote: On 7/19/07, Bob [EMAIL PROTECTED] wrote: Thank you. Tried that. Same result, same errors. Bob Well, I'm pretty sure that when PHP is saying that it can't connect to the database server, it's being honest. I would triple check that the username

  1   2   >