Hello Vincent :)
Web site is live and working on web server.
if($this->Banner->update()) is called in BannerController.php
(currently on webserver is: require_once('Banner.php');
if(Banner::update()))

.htaccess is identical on localhost and web server. I got it from web server
when got this project. And it is working on my localhost.

also i noticed that when i am calling method like: $this->update('some sql
statement') - which is in original file(popular.php - model) i remake for
banners, i am getting error 500. If i use $this->db->update('some sql
statement') it works fine.
Is there a possibility that problem is caused by version of FW? i am not
sure what version i have on my computer. It could be ZF1.5, but not sure and
dont know how to check. On web server i think that this is ZF 1.01. 
Also, there is a folder inside every subfolder on web site which is called
.svn. I dont know what is this for. :)
Sorry if i am bothering with my problem, just i dont know from where to
start to solve it .

@Jacob- i already read acrabat and all tutorial from acrabat web site, but
couldnt figure it out.. :(



Vincent-20 wrote:
> 
> On 5/16/08, vladimirn <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hello Jacob, thank you :)
>> I will try to explain.
>> I have admin part of site. In administration i added new functionality-
>> adding new banners.
>> I made a BannerController.php(controller), Banner.php(model), and
>> following
>> the example of guy who made whole application i made admin-index.phtml
>> and
>> admin-update.phtml in scripts/banner folder.
>> When you click on link i made in administration- Manage index banner, on
>> my
>> localhost i am getting a page with form for new banner. And it is
>> working.
>>
>> Also there is an index,phtml page where i am calling
>> <?=$this->getActiveBanner()?> at some point. And this works fine too on
>> my
>> localhost.
>>
>> But when i upload all on live site, clicking on Manage index banner not
>> showing new form, but redirecting out of administration page, and display
>> Error 500: Internal server error, please try again  ... or some. :)
>> If no ideas so far, i can post my methods, so you can take a look into
>> it.
>> I am most confusing about that its work on localhost and same files
>> doesn't
>> work on live server :)
> 
> 
> Has it worked before on the live server? If not, are you sure the rewrite
> rules are correct?
> 
> Second question is:
>> I used existing file which have very similar functionality. It displays
>> data
>> from other mysql table, but same methods are used. So i just copied
>> existing
>> files, and made a new one.
>> Eg. file Popular.php and PopularController.php i renamed to Banner.php
>> and
>> BannerController.php, and changed protected _name='popular' to
>> _name='banners'.
>> Also changed some html code and when click on Manage index banner i was
>> getting error: No cuch metod updateBanner. Code for that was:
>> if($this->Banner->update()).. and then did: require_once('Banner.php');
>> if(Banner::update()) and then works :)
> 
> 
> Sorry, I can't follow this. Where are you calling updateBanner?
> 
> So i am so confused and dont have any clues about all this :)
>> Thank you one more time,
>> Vladimir
>>
>>
>>
>>
> Cheers,
> 
> -- 
> Vincent
> 
> 

-- 
View this message in context: 
http://www.nabble.com/noob-problem---ZF-works-on-localhost-but-not-on-webserver-tp17272058p17272949.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to