ACL - How to list all grants by ACO and action

2009-03-22 Thread Smelly_Eddie
I understand using ACL to grant, revoke, check, etc on a specific ACO. My curiosity is how to list all IDs of a particular model I have access to. So it there is a user named Fee (ARO). And I grant Fee access to read the following items (ACOs) Ship, Paper, Milly. Is there a simple means in

Some ACL Advice Please - Multiple Group Membership

2009-03-15 Thread Smelly_Eddie
So I have finally broken down in my stubborn ways and agreed to accept Cake's Acl component. After walking through the manual I believe it will make it into all my future sites. The trouble I am having is to add it to one of my old sites. I am not looking for technical advice so much as

Re: Validate rule: multiple (CookBook - 4.1.4.17 Multiple)

2009-02-19 Thread Smelly_Eddie
WebbedIT I not sure if you have considered using your own validation method for all checkbox fields. You can use some simple logic to assess if one of the boxes is check, and return errors accordingly. Validation multiple fields with the OR conditon

Re: Skipping Validation on Date Fields

2009-02-12 Thread Smelly_Eddie
Hmm I thought if you left out the field entirely that was the straightforward fix. $validate should only mention fields you want to validate On Feb 11, 5:41 am, overture phil.mccl...@gmail.com wrote: I am having issues with validation on date fields.  I need to ignore validation for a

Re: Linking three tables?

2009-02-12 Thread Smelly_Eddie
two suggestions with links were posted, please read those. On Feb 11, 12:37 pm, jtc2 jtc...@gmail.com wrote: Did you ever find a solution to this? I have a similar situation. Looks like your fourth table structure would be correct and I guess the table name could be whatever you want it to be

Re: Alternative Routing for RSS

2009-02-12 Thread Smelly_Eddie
Maestro, I think this article may help you, Add RSS Feeds to your CakePHP Models; http://edwardawebb.com/programming/php-programming/cakephp/add-rss-feed-cakephp-models On Feb 12, 6:32 am, Martin Westin martin.westin...@gmail.com wrote: I am not really an expert on routing, but i'd say that

Re: Validation rule with or

2009-02-11 Thread Smelly_Eddie
Henrik: Seems like a pretty common need doesn't it. The solution is pretty simple. You call the same validation rule for every related field. $validate= array( 'field1'=array('rule'='dependentFields'), 'field2'=array('rule'='dependentFields') ) Then the method function dependenFields() {

Re: odd database problem

2009-02-04 Thread Smelly_Eddie
Are you using different prefixes for the tables? How are you sure you can connect to the DB? Have you tried turning on debugging? On Feb 4, 4:24 am, hellfish ruicruz...@gmail.com wrote: I've already done that, several times. On top of this, the logs show no errors at all. On Feb 3, 7:21 

Re: help plz

2009-02-04 Thread Smelly_Eddie
read the manual. http://book.cakephp.org/ On Feb 3, 12:41 pm, monirr muni...@hotmail.com wrote: ok here is my problem i'm new to cake and i bulid every thing ok so i have categories and recipes categories has many   recipes , recipes belongs to categories  i wanna access recipes by

Re: Running bake on a remote server using console

2009-02-02 Thread Smelly_Eddie
First off you would need shell access to your remote server, and can't call it locally. If your using CYgwin the commands should be identical, only the paths will change. But you will need putty or similar if your running windows locally. Second, why don't you just replicate your local files

Re: Vote for add Cakephp into Netbeans

2009-01-30 Thread Smelly_Eddie
I don't see the big thrill here... It already supports php I would assume. Which should provide all you need for debugging cake since it is properly structured classes, methods etc. It is just a super-sized php application. So it would seem the only perk is interface design, which I tend to

Re: XAMPP for linux

2009-01-29 Thread Smelly_Eddie
WHy would you install XamPP? Your taking already running a perfectly decent LAMP box! XAMPP would never match the tuned performacne you;ll get using the included binaries. On Jan 29, 10:59 am, yusuf widi wmo...@gmail.com wrote: xampp for linux can be find on apachefriend.com but you know

Re: access helper from behavior

2009-01-28 Thread Smelly_Eddie
Helpers are used for the presentation layer. And are ideally only accessed from the views. If you want to manipulate data in the behavior than the functionality should be in a behavior. Why is that not the case, since it sounds like you only use the tidy functionality before saving, and not

Re: Auth Component not hashing password

2009-01-27 Thread Smelly_Eddie
Why not validate before hashing the password? The article below outlines how to handle validation and comparing two password fields. Also handles things like unique username and email addresses. http://edwardawebb.com/programming/php-programming/cakephp/complex-validation-cakephp-12 On Jan 26,

Re: File Upload Limit?

2009-01-27 Thread Smelly_Eddie
seems like a waste of a vps Three people told you to check the php settings. edit your php.ini to read upload_max_filesize 16M or whatever you want the max to be. You'll also need to adjust max_execution_time- max time the parser will deal with a script max_input_time - max

Re: simple and complete file upload behaviour

2009-01-26 Thread Smelly_Eddie
Daniel Hofstetter has a great article on uploading files to a database. If the size of your files is limited(pdfs, docs, etc) this can be a practical approach because managing them is quite easy. http://cakebaker.42dh.com/2006/04/15/file-upload-with-cakephp/ I wrote a complementary article

Re: best component to manage login/registration in 1.2?

2009-01-25 Thread Smelly_Eddie
Willie: I can offer my help with the lost passwords bit. I wrote a simple ticket system that allows users to enter there email, and receive a password reset token for 1 use. http://edwardawebb.com/programming/php-programming/cakephp/reset-lost-passwords-cakephp You could reuse the basic

Re: File Upload Limit?

2009-01-25 Thread Smelly_Eddie
What exactly is 'dont work out well'? By default Apache does not limit size, and you would see a 403 or 413 error if that was at fault, but by default does cap script execution to 300 seconds. To expand on Jon's comment; MOre likely is PHP configuration. To check the limits on php use

Re: Clarification about HABTM models

2009-01-23 Thread Smelly_Eddie
Is it being ignored, or is the following methods that generate the view just creating a new page so the echo statement is never seen? Try adding a exit; or die(); statement to be sure. On Jan 22, 10:43 am, Ernesto e.fanz...@gmail.com wrote: Hello i'm having some troubles with an HABTM

Re: Create html files dynamically

2009-01-23 Thread Smelly_Eddie
Sumesh Would you like us to code the app for your client, or did you have a specific problem you needed a push with? Are you referring to the routing, or page content? Why are you charging clients to learn new software? On Jan 22, 12:25 am, Sumesh G sathees...@gmail.com wrote: hi i am

Re: validate 'minLength' for 'password' field

2009-01-22 Thread Smelly_Eddie
Adam I created an article for full Validation of User Models. It includes the methods to validate username , email, require special characters, length and matching passwords passwords. It also takes care to ensure that emails and usernames are unique. It also has some logic to ignore these

Re: How can I force www. to always be in my domain name?

2009-01-21 Thread Smelly_Eddie
In my opinion you should be doing just the opposite. WWW was used when computers needed the sub.domain to be aware of what type of content they were about to receive. Since web-pages today are becoming RIA and browsers are so robust the need is deprecated, and I and may others argue that www

Re: 'default' option of checkbox does not work :(

2009-01-19 Thread Smelly_Eddie
checked = 1 On Jan 19, 1:05 am, kizuki kurakur...@gmail.com wrote: After looking deeply at the source code in helper.php and form.php, I understood that the form helper is not designed to accept the 'default' value for checkboxes and radio buttons. (I also understood that my code change 2

Re: Where to validate multiple fields?

2009-01-15 Thread Smelly_Eddie
You can create a custom function and use it in the $validate parameter. Have a look at this article to get an idea of how that would work in your case. (The compare passwords option) http://edwardawebb.com/programming/php-programming/cakephp/complex-validation-cakephp-12 On Jan 14, 11:44 am,

Re: Bake scripts without shell access

2009-01-15 Thread Smelly_Eddie
Check out dreamhost. Shared hosting keep costs down and you get full shell access. But yes, I would recommend baking locally and uploading. You can even limit the edits you need to make by customizing your database config file a bit.

Re: mod_rewrite problems

2009-01-15 Thread Smelly_Eddie
Try adding RewriteBase / just after RewriteEngine On in your htaccess files. When I was on godaddy i found this to be a requirement to get things working. On Jan 14, 4:14 pm, neridaj neri...@gmail.com wrote: Hello, I've edited my httpd.conf file as instructed and can't get mod_rewrite

Re: quick table functions

2009-01-14 Thread Smelly_Eddie
I think in the same amount of time you could have searched the cake manual on any one of those keywords and found your answer. Don't be lazy. On Jan 13, 7:38 am, forrestgump vikhya...@gmail.com wrote: Hey, Does anyone know how to sort a table based on any collumn a user has selected and also

Re: swiftmailer wont send

2009-01-14 Thread Smelly_Eddie
WOW Knock it off. Posting duplicate threads and repeated messages will not get you help any faster. On Jan 13, 3:22 am, ksalling k...@kylesalling.com wrote: I am using this: $this-Swiftmailer-smtpType = 'tls'; $this-Swiftmailer-smtpHost = 'smtp.gmail.com'; $this-Swiftmailer-smtpPort

Re: how to display image in your view from database

2009-01-13 Thread Smelly_Eddie
I wrote a straight forward article on retrieveing images from a db for inline use and as downloads. http://edwardawebb.com/programming/php-programming/cakephp/serving-files-cakephp I think youll find it answers your questions. please comment if you have any feedback (positive or negative) On

Re: Validation errors for the wrong form

2009-01-04 Thread Smelly_Eddie
Maria: You can simply limit validation to only occur if fields are present. For example, a register page might have two password fields to compare, while a login will only have one. A register page might have email, or address while a login will not. The article below explains how to perform

Re: getting content from another content type into a static page

2009-01-04 Thread Smelly_Eddie
Rick: I think you want to look into elements. You can create an action in your articles controller like loadArticleSnippet($id) You can then call that action from an element that is coded into your homepage. http://book.cakephp.org/view/97/Elements On Jan 4, 5:54 am, Rick Hurst

Re: setting up cake bake console

2009-01-04 Thread Smelly_Eddie
Call the script from the parent directory of the Cake App and don't specify app name. eg in cake # ./cake/console/cake bake On Jan 4, 3:59 am, gemmes variouspix...@googlemail.com wrote: Hi All, Im trying to bake some apps from the console. Can someone please help me solve the problems Im

Re: HABTM retrieving help

2009-01-04 Thread Smelly_Eddie
You would read the Cake Manual section on pagination which answers all your questions. http://book.cakephp.org/view/164/pagination On Jan 3, 10:30 pm, gearvOsh mileswjohn...@gmail.com wrote: Heres my tables and relations: Team Team-belongsTo: Country, State Team-hasAndBelongsToMany: User

Re: without default Database Configuration: Fatal error: ConnectionManager::getDataSource - Non-existent data source default

2009-01-03 Thread Smelly_Eddie
Sounds like you want to use multiple configurations based on the location of the app (live versus dev) There are a few ways to solve this. I wrote an article outlining my preferred method. You should read through the user comments as they add some helpful insight, including how to use this

Re: Migrating PHP website from Windows to Linux or between Linux distributions

2009-01-02 Thread Smelly_Eddie
Aus The platform shouldnt matter in terms of design so Long as your not using any proprietary formats like frontpage extensions or asp. If you application is PHP, HTML and CSS then your only concern should be the browsers your visitors will use. If your not using Mysql, what backend are you

Re: Conditional find on recursive belongsTo association

2009-01-01 Thread Smelly_Eddie
Hit it form the middle model. IE paginate on the person model and you can view orgs and staff, thus allowing you to view staff by org. If that doesnt work for you then you might have other issues. On Dec 31 2008, 5:16 am, WebbedIT p...@webbedit.co.uk wrote: Bump ... really need some help with

Re: Is it possible to use helper in model?

2008-12-31 Thread Smelly_Eddie
Your missing the purpose of helpers. They are meant to manipulate data as it is presented to users within a view. (show nice dates, currency, trees, etc.) Within a model you should just handle the data in its current form and validate against that. What would you use the number helper for in

Re: Email component — problems sending to same domain

2008-12-31 Thread Smelly_Eddie
smtp should be the default. It is the de facto standard for internet transfer of email (simple mail transfer protocol) mail is a 'nix based system of mails that are usually handled internally or within a lan. I don't think that switching to mail would help as the email would never reach your

Re: form action url

2008-12-31 Thread Smelly_Eddie
$form-create('User', array ('controller'='users','action'='login')); On Dec 30, 1:23 pm, jejk jerome.ku...@gmail.com wrote: I guess it s  a trouble with $base in dispatcher.php but I don't see how to tune that. --~--~-~--~~~---~--~~ You received this message

Re: Problem related to dropdown box

2008-12-28 Thread Smelly_Eddie
You need to read up on the manual. On Dec 27, 7:14 am, mona poojapinj...@gmail.com wrote: It can't solve my problem i m sending you my code can you tell me where i m making mistake plz correct it if it is possible this i my entries controller  and i want data in drop down box in add and

Re: file uploading in cake php

2008-12-28 Thread Smelly_Eddie
Google upload files with CakePHP On Dec 27, 8:59 am, mona poojapinj...@gmail.com wrote: Hello mike sorry for distutbing you once again. I am sending you my file uploading problem please i need your help if you help me it will be great help for me this is my add view code please consider it

Re: Freelancer seeking CakePHP jobs

2008-12-28 Thread Smelly_Eddie
Please do not post employment related posts. This group is for support and information sharing, not to get you a job. There are numerous sites dedicated to Web Dev jobs and such. On Dec 27, 3:09 pm, 3lancer.eu kilc...@gmail.com wrote: Hi, I am seeking (remote) employment in CakePHP,

Re: custom SQL query - all values IN() bust be AND

2008-12-24 Thread Smelly_Eddie
                        (                             [id] = 2                             [advert_id] = 2                             [option] = 4                         )                 )         ) On Dec 24, 12:35 am, Smelly_Eddie ollit...@gmail.com wrote: How can the same field have multiple values? -it can be = '3

Re: passing parameter formed by javascript function

2008-12-23 Thread Smelly_Eddie
I'm not sure I follow. I get the impression your trying to use javascript **within** your php code. PHP is a server side language. This means that it does ALL of its processing before the user see anything. (Except for special cases where output is a stream or iterative) JavaScript is a client

Re: custom SQL query - all values IN() bust be AND

2008-12-23 Thread Smelly_Eddie
How can the same field have multiple values? -it can be = '3' -it can be= '4'' Otherwise maybe your are just concatenating multiple variables into one, e.g.; -it can be='3,4' which probably should be evaluated for best practices.. You would not use IN in such a case. If the are always ordered

Re: Deep belongsTo

2008-12-22 Thread Smelly_Eddie
I think you may want to check out the 'finder query' and adjust it for each of your test and command models. On Dec 21, 5:05 pm, Ralle test_cb4...@yahoo.dk wrote: I think CakePHP has a really clever way to do this, so instead of reinventing the wheel, i'd ask you guys. I've used the search

Re: self referential many to many relationships

2008-12-19 Thread Smelly_Eddie
http://book.cakephp.org/view/78/Associations-Linking-Models-Together On Dec 18, 2:46 pm, overture phil.mccl...@gmail.com wrote: If I have a 'users' table which represents a set of employees and I want to assign a given employee mutiple supervisora (who are obviously also in the 'users' table)

Re: Error Messages Not Displaying in View or in Validations Array

2008-12-19 Thread Smelly_Eddie
Just a guess but it looks like your sending the form data to a different page... Validation was intended to display on the same model in a circular manner. i.e. empty user/add form is shown - data submitted to user/ add action - user/add validates data - form is repeated if invalid OR redirect

Re: How to use the controller flash() method and what's the expected behaviour and output?

2008-12-19 Thread Smelly_Eddie
Fabio I may not entirely understand, if so I appoligize. If you want to know why using Configure::write('debug', 0); in the / views/posts/add.ctp for the redirect then I offer my explanation. Heres your scenario (as I understand it); Controller calls flash layout passing it a url,delay and

Re: what is the best way to restrict actions to different profiles from the same model User?

2008-12-18 Thread Smelly_Eddie
I think your missing the point of ACLs You should have a record of user ID's that may add new users. On Dec 17, 10:39 am, persivo_cunha ricky...@gmail.com wrote: Hi, Im my DB, i have one table called 'user' with a field called profile, and only the profile 'admin' can add a new user. Is

Re: validation rule works locally, but not on server

2008-12-18 Thread Smelly_Eddie
I believe this is based on the version of PHP your machines are running. (4 vs 5) I also think there is a submitted ticket for the issue but I have the time to search. Google alphanumeric issue in Cakephp and Im sure you'll find the details. On Dec 17, 3:00 pm, RyOnLife

Re: Wizard Component 1.2 and admin routing

2008-12-17 Thread Smelly_Eddie
This would probably be a question better left for the page you included :) On Dec 16, 7:11 am, Alexandru Ciobanu ics.cake...@gmail.com wrote: Hi, I'm trying to use jared's Wizard component with admin routing but can't seem to figure it

Re: New to CakePHP

2008-12-17 Thread Smelly_Eddie
WallyJ I would guess. Basically your main config is saying dont let any sub directory's htaccess files do anything, I'm the boss! So when mod_rewrite is inactive, there is no issue. But when you activate mod_rewrite you create a conflict which results in the access forbidden. You'll need

Re: Looking for good Cake PHP developer in S.Florida

2008-12-17 Thread Smelly_Eddie
Please don't post job offers. Try LinkedIn or your local wanted ads. :) On Dec 16, 11:58 am, matt matt.la...@augme.com wrote: I'm looking for a high quality Cake PHP developer for a three-month, full-time commitment which could very likely be extended to a permanent position. We are a two

Re: CakePHP internship / job

2008-12-17 Thread Smelly_Eddie
I would try your school's job posting board or a professional networking site like LinkedIn. I doubt you'll find help here since users prefer to keep this group dedicated to programming issues and not job offers. (As it should be) On Dec 16, 9:14 am, Pascal Messana kinglo...@gmail.com wrote:

Re: Best Practice needed: How to deal with 'hasMany' Associations in an add-View

2008-12-16 Thread Smelly_Eddie
I'm not sure I understand. Are you attempting to save duplicate data to both A and B. Or do you wish to save unique data to A and B but from the same form. On Dec 15, 3:20 pm, volka volker.b...@googlemail.com wrote: Hi there, I hope someone is going to share his best practice(s) with me

Re: Seperate Public/Admin Apps with Shared Models Webroot?

2008-12-10 Thread Smelly_Eddie
I have to agree with Adam on this point. The whole concept of admin routing is to provide radically different interaction capabilities and layouts separated by end users and administrators. Duplicating code in two separate apps is poor practice. Think about scalability and enhancements. Why

Re: Data Validation error message fails on $this-redirect

2008-12-06 Thread Smelly_Eddie
Why are you using two actions to begin with? It seems like your inviting issues using such a manner. Have you considered sending all the data to the same action, and on successful validation redirect to the next action? Seems like a cleaner way to go about things. On Dec 6, 1:20 am,

Re: Change database and host from the Controller

2008-12-04 Thread Smelly_Eddie
Assuming your database.php has the $default connection set, you can just replace the details on the fly DATABASE_CONFIG::default = array(new connection details); At least I think that would word since its all static. You might need to import first though I dont think so. On Dec 3, 3:09 pm,

Behavior can create new records but fails to update.

2008-12-04 Thread Smelly_Eddie
I have been going straight with this one for a few hours now and I'm stumped. Usually from a controller you can just call $this-Model-read, and then $this-Model-save to update any values changed inbetween. When I try the same from my Behavior it fails to update the record. If I eliminate the

Re: Behavior can create new records but fails to update.

2008-12-04 Thread Smelly_Eddie
Thanks, but unfortunately the results are the same. No update query is run. $model-id=$userID; $data=$model-read(); debug($data); //overwrite their password

Re: Behavior can create new records but fails to update.

2008-12-04 Thread Smelly_Eddie
; //$model-data=$violator; $model-save($data,false); // the second argument ignores validation On Dec 4, 8:29 pm, Smelly_Eddie [EMAIL PROTECTED] wrote: Thanks, but unfortunately the results are the same. No update query is run.                 $model-id=$userID

Re: Current datetime in model

2008-12-03 Thread Smelly_Eddie
how about $currentTime = date('Y-m-d h:i:s'); //check the format for the date command, I may be off. Then use $currentTime in your query On Dec 2, 8:47 am, Alexey Grunichev [EMAIL PROTECTED] wrote: Does cake contain any functionality to pass as parametr in condition function current

Re: PHP generated JavaScript

2008-12-03 Thread Smelly_Eddie
?PHP echo $codeFromDb ? On Dec 3, 4:16 am, Henrik Gemal [EMAIL PROTECTED] wrote: I need to include a JavaScript URL on my page. The JavaScript needs to be generated by PHP. How do I do that? The PHP needs to read from the database to generate the JavaScript

Re: save extra filed 'entity' in HABTM join tabel

2008-12-03 Thread Smelly_Eddie
I believe the with attribute will conflict with 'join_table' because the model specified by 'wiht' already knows what table it wants to use. You should use one or the other. I have successfully added additional fields in a HABTM using 'with' ..without issue     var $hasAndBelongsToMany =

Re: Multiple views

2008-11-24 Thread Smelly_Eddie
First you need to create an element that contains the HTML code to display your data. Store it in views/elements/NAME.ctp In that code(the element) you can make a call to any controller action to get the needed data. $this-requestAction('/controller/action') (I think) Then you would

Re: validation

2008-11-24 Thread Smelly_Eddie
Are you asking how to write a custom validation function? You can specify a custom function in place of one of Cake's provided rules. http://edwardawebb.com/programming/php-programming/cakephp/complex-validation-cakephp-12 On Nov 24, 8:44 am, sun [EMAIL PROTECTED] wrote: hello sir,          

Re: several database settings

2008-11-23 Thread Smelly_Eddie
Right. Making multiple connections work with he shell is easy though, Just assume the absence of HTTP_HOST means your consoling. http://edwardawebb.com/programming/php-programming/cakephp/automatically-choose-database-connections-cakephp On Nov 22, 8:26 pm, francky06l [EMAIL PROTECTED] wrote:

Re: How do I use find to retreive data from multiple tables

2008-11-23 Thread Smelly_Eddie
This is a simple relationship, I think your missing something. $this-find('list', array('fields'=array ('Site.id','Site.title'),'conditions'=array('SiteUser.id=1')) THis will require the recursive attribute to be 0 or higher I think. On Nov 23, 12:03 am, pkclarke [EMAIL PROTECTED] wrote: I

Re: How to set DB config settings automatically based on $_SERVER['HTTP_HOST']?

2008-11-21 Thread Smelly_Eddie
You might be interested in using a case statement to streamline things. You should also be sure to check for HTTP_HOST first, since baking from the console wont have such a variable. http://edwardawebb.com/programming/php-programming/cakephp/automatically-choose-database-connections-cakephp

Re: isHashed Custom Validation

2008-11-21 Thread Smelly_Eddie
Maybe I am missing something, but why not just Hash as part of validation, then you'll know it is not hashed until after the compare? http://edwardawebb.com/programming/php-programming/cakephp/complex-validation-cakephp-12 On Nov 20, 12:24 pm, bingo [EMAIL PROTECTED] wrote: Hi bakers, I am

Re: Named parameters VS $_GET

2008-11-20 Thread Smelly_Eddie
I think there is a little more to it than that. Most search engines ignore anything after ? (query string) This can be useful or detrimental depending on your situation. If you are passing around trivial data like session ids or something that doesn't physically alter the page, I would stick

Re: Configuring Cake with openSUSE 11

2008-11-17 Thread Smelly_Eddie
Read the code you posted again unbund there IS an allowOverride option...though its not set to None, insteaD it is specifying what is allowed. Setting it to All, as Alexandru suggested, might help. Otherwise check the apache config to make sure your loading the rewrite module. PS I am

Re: Help needed for inline WISIWYG editor...

2008-11-13 Thread Smelly_Eddie
TinyMCE is what you need. Minimal code to turn any text area into rich editors. PAsses data normally as post (or whatever method your existing form uses) On Nov 13, 8:04 am, Aneesh S [EMAIL PROTECTED] wrote: I had tried Yahoo's rich text editor, but i could not get the data via post... Any

Re: acess url only from email

2008-11-13 Thread Smelly_Eddie
://www.yourdomain.com/confimation/email_hash). Just make sure you do not link to that page from anywhere in your site. If you know a better solution then use it and share with others as well. Maybe you will get it now. On Nov 12, 4:40 pm, Smelly_Eddie [EMAIL PROTECTED] wrote: That still does

Re: acess url only from email

2008-11-12 Thread Smelly_Eddie
That still does not prevent a user from sharing the original url in the email. Anyone that visits the first page could see the second. It seems like this is a moot point if you use authentication or email tickets, which would be a much more sound approach. Any solution you may come up with

Re: Advice for building a simple CMS

2008-11-12 Thread Smelly_Eddie
I think I must be missing your question...Why not just add an order field to the content table instead of the page name? On Nov 12, 4:39 am, Atomic Guava [EMAIL PROTECTED] wrote: I'm currently developing a CMS which aims to have the following base functionality: a) Auth component with admin

Re: Using maven for deployment

2008-11-06 Thread Smelly_Eddie
Bob: Have you made nay progress on this. Thinking about it got me very excited. I am very new to Maven itself, but I have begun looking into creating pom files for CakePHP. I don't want to reinvent the wheel though if your already moving forward. Eddie On Oct 10, 10:12 am, Bob Mattax [EMAIL

Re: File Download Problem

2008-10-29 Thread Smelly_Eddie
Da-Omiete Iboroma I'm not sure why your email didn't make it to the board, but I'll try to answer. The file /etc/my.cnf and /etc/my.ini are interchangeable I believe. Just depends on the naming convention in use. The critical thing is to include the 'group' [mysqld] and to restart mysql

Re: File Download Problem

2008-10-26 Thread Smelly_Eddie
I just discovered that the default value on mysql server is 1MB. You can increase the value by adding the following lines to /etc/my.cnf. [mysqld] max_allowed_packet=8M On Oct 23, 1:49 pm, Smelly_Eddie [EMAIL PROTECTED] wrote: I know your uploading to MySQL, but it might be the php engine

Re: Resetting Lost Passwords

2008-10-25 Thread Smelly_Eddie
it. Maybe you see some detail or two you like. /Martin On Oct 24, 10:51 pm, Smelly_Eddie [EMAIL PROTECTED] wrote: Allowing users the ability to change passwords is a no brainer. But what do you do if a user losses their password?  Several months ago I wrote a very simple component that works

Re: Hosting

2008-10-24 Thread Smelly_Eddie
Avoid GoDaddy like the plague. Cheap yes, but support, service or features, NO. For example, they have locked down access to mysqldump, take days or weeks to respond to issue tickets that are never resolved to satisfaction, and eventually just get ignored. They share too many slices on each

Resetting Lost Passwords

2008-10-24 Thread Smelly_Eddie
Allowing users the ability to change passwords is a no brainer. But what do you do if a user losses their password? Several months ago I wrote a very simple component that works in conjunction with my user model to issue tickets to user emails. The ticket can be retrieved via email and allows

Re: File Download Problem

2008-10-23 Thread Smelly_Eddie
I know your uploading to MySQL, but it might be the php engine that iss cutting you off. Check max_upload_size in php.ini, it might be set to 1 MB. My site's db only uses a Medium blob, and as you can see I have a 1.3 MB file, among others. 1 [BLOB - 23.7 KiB] 1 [BLOB - 715 B] 1

Re: CakePHP create url's Rails way - rHelper

2008-10-23 Thread Smelly_Eddie
Nookie: What are you using to compare performance? On Oct 22, 7:15 pm, Nookie [EMAIL PROTECTED] wrote: I've just create new helper to create urls faster then just using Router::url(). You can check it here -http://bin.cakephp.org/view/490647179 I'll would like to know what you think about

Re: CMS solutions

2008-10-23 Thread Smelly_Eddie
Burn On Oct 23, 2:53 pm, gravyface [EMAIL PROTECTED] wrote: FarshadBinNasoordeen wrote: I am new to PHP and i am looking forward to upgrade my site into a cms system currently its not a cms system if i wanna add a new menu to my site i have to add that menu to each and evry page this

Re: Adding/removing HABTM associations with existing model records

2008-10-23 Thread Smelly_Eddie
Perceptes, unless I am misunderstanding you, this is very easy to solve. Make sure your models have the right relationships. Create an edit action and view for the group model. In that edit view, for the groups model, add a multiple select list using the permissions model. You of course need to

Re: Creating a Settings / preferences Component

2008-10-19 Thread Smelly_Eddie
, Smelly_Eddie [EMAIL PROTECTED] wrote: I am having some trouble with the proper way to go about modeling this. I would love suggestions. I have a simple database with an id, key and value fields.   I made an administrative model, controller and views to add and manage the table of options

Re: Creating a Settings / preferences Component

2008-10-19 Thread Smelly_Eddie
PROTECTED] wrote: You can get an instance of your Setting model by using the ClassRegistry: $Setting = ClassRegistry::init('Setting'); $Setting-getMinMax(); Or did I misunderstand you? -David On 19 Okt., 17:15, Smelly_Eddie [EMAIL PROTECTED] wrote: Thanks Pablo. Helps when you

Re: Creating a Settings / preferences Component

2008-10-19 Thread Smelly_Eddie
I'll call the model from the *app_controller*, and pass the settings back as an array to set as a global variable. On Oct 18, 7:36 pm, Pablo Viojo [EMAIL PROTECTED] wrote: Sent from my iPhone On 18-10-2008, at 17:07, Smelly_Eddie [EMAIL PROTECTED] wrote: I am having some trouble

Creating a Settings / preferences Component

2008-10-18 Thread Smelly_Eddie
I am having some trouble with the proper way to go about modeling this. I would love suggestions. I have a simple database with an id, key and value fields. I made an administrative model, controller and views to add and manage the table of options. I have some functions in the model that

Re: access session.userid in model?

2008-10-14 Thread Smelly_Eddie
Here's the short, It is possible to retrieve any value from Session, so long as you store it there first. A simple search in this mail group or on the web would have revealed this thread already discussing this topic in detail;

Re: Validation using controller

2008-10-14 Thread Smelly_Eddie
bookme try reading up on the cakephp manual or api regarding validation. All your questions are answered very sufficiently there. On Oct 13, 2:17 pm, bookme [EMAIL PROTECTED] wrote: Hi, I am using Integrate CakePHP with Kcaptcha from bakery. Finding problem at the time of captcha validation

Re: captcha validation from controller

2008-10-13 Thread Smelly_Eddie
I find CAPTCHA images to be a hassle on the sites I visit and don't subject my users to the same. You may want to try scrapping that approach and instead using logic questions. For instance, ask users if the sky is blue, if snowmen melt under extreme heat, or whether a brick or a feather is

Re: Hosting A Cake App On GoDaddy!

2008-10-13 Thread Smelly_Eddie
I'm running godaddy hosting for all my domains, several cakephp apps. What issues are you having? If it is redirect issues than I know the fix. in the files .htaccess in cake/, cake/app/, and cake/app/webroot/ i think. You need to edit them to add the magic words, RewriteBase / Add this

How to Create Subdomains on your localhost - host multiple projects at once

2008-10-10 Thread Smelly_Eddie
I was so excited when i figured this out, and I'm sorry if it is a 'no- duh' scenario for some of you. But for me this was huge. You can host multiple CakePHP projects on your local machine, giving each their own sub-domains. Before I would literally change the document root setting in apache

Re: How to validate password length

2008-09-28 Thread Smelly_Eddie
Mario: I wrote some code that not only checks for a min. length, but also requires a 'strong' password. This means i make users use at least 1 non-word character and a digit. (ex. pas5_word). And I make them enter it twice! I use unique error messages to warn when they dont match, and when

CakePHP Group on LinkedIn

2008-09-11 Thread Smelly_Eddie
Just a news update! The LinkedIn group is on the verge of 200 members. I am very happy to see users support the framework. If you would like to join and show your support by increasing CakePHP's visibility; http://www.linkedin.com/e/gis/82040 You can also show support to CakePHP monetarily -

Re: Create a new model instance and return its new ID

2008-07-25 Thread Smelly_Eddie
GJ: When users register on one site onf mine, i automatically add them to a table of news articles. I think this is a similar idea top what you (very) sparsley described. this is calledc from users/register ,and calls a function in a behavior, that User actsas. You could also place directly int

Re: problem with user input -

2008-07-25 Thread Smelly_Eddie
Not sure what your trying to do... Are you trying to validate user input before saving new records? Are you trying to format existing records in an edit? Are you just trying to strip html tags from the post? On Jul 25, 3:49 am, Web Test [EMAIL PROTECTED] wrote: i have a company adding form

  1   2   >