Strongly Typed from Model to View
27 posts
• Page 3 of 3 • 1, 2, 3
Re: Strongly Typed from Model to View
when i download the zip
3.0.0. 3406
and do setup,
it says:
Microsoft .net fw 4.0 full (already installed)
Phalanger and IIS int. (already installed, click to repair or remove).
Phalanger Tools for VS "install latest version of phalanger int. for vs 2010".
so i want to install the phalanger tools for vs? which i thought was installed
just before .... ?
-tl
3.0.0. 3406
and do setup,
it says:
Microsoft .net fw 4.0 full (already installed)
Phalanger and IIS int. (already installed, click to repair or remove).
Phalanger Tools for VS "install latest version of phalanger int. for vs 2010".
so i want to install the phalanger tools for vs? which i thought was installed
just before .... ?
-tl
- tleslie
- Posts: 32
- Joined: August 3rd, 2012, 4:42 am
Re: Strongly Typed from Model to View
ok, tried to click on the phalanger tools for vs,
it says already installed.
So i have run totally out of options
-tl
it says already installed.
So i have run totally out of options
-tl
- tleslie
- Posts: 32
- Joined: August 3rd, 2012, 4:42 am
Re: Strongly Typed from Model to View
Actually Phalanger 3.0.0.3406 fixes some of your issues reported earlier.
I don't know which version of Phalanger you use, try to update Phalanger (not Phalanger Tools)
I don't know which version of Phalanger you use, try to update Phalanger (not Phalanger Tools)
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Strongly Typed from Model to View
ok uninstalled phalanger 3.0..... from aug 1,
installed latest, does seem to help,
i get intellisense back and phpDoc seem to do something,
i will know more once i play with it.
Not sure about formatting at this point, but that isn't as important to me.
-tl
installed latest, does seem to help,
i get intellisense back and phpDoc seem to do something,
i will know more once i play with it.
Not sure about formatting at this point, but that isn't as important to me.
-tl
- tleslie
- Posts: 32
- Joined: August 3rd, 2012, 4:42 am
Re: Strongly Typed from Model to View
Great! Sorry for the troubles - Phalanger and Phalanger Tools are very closely coupled; based on this, we will improve the 'experience' in the next update
There are lot of new features, if you'll have any question or idea, feel free to create new topic.
There are lot of new features, if you'll have any question or idea, feel free to create new topic.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Strongly Typed from Model to View
I guess good news.
So the GetModel()->....
works now, instead of me doing a object assign first to "set" the variable
type for intellisense, the phpDoc is working,
but it doens't work form my GetModel $model set up where
the $model is a Dictionary<String, object>.
I want do do
GetModel()["Object name"] to retrieve, but it doesn't like this syntax.
if i make $model a class that in turn contains other classes, and so on,
it not only allows me to intellisense those classes contained in $model,
but it lets me intellisense into those classes, and classes of those classes,
without having anymore then just the one phpDoc comment spec. what
the $model is. So this is nice, down side is, doesn't seem to support
Dictionary or i don't know how to specify an item out of a Dictionary
(with key) in a way phalanager/php wants.
formatting seems to work, the little that i tested it.
-tl
So the GetModel()->....
works now, instead of me doing a object assign first to "set" the variable
type for intellisense, the phpDoc is working,
but it doens't work form my GetModel $model set up where
the $model is a Dictionary<String, object>.
I want do do
GetModel()["Object name"] to retrieve, but it doesn't like this syntax.
if i make $model a class that in turn contains other classes, and so on,
it not only allows me to intellisense those classes contained in $model,
but it lets me intellisense into those classes, and classes of those classes,
without having anymore then just the one phpDoc comment spec. what
the $model is. So this is nice, down side is, doesn't seem to support
Dictionary or i don't know how to specify an item out of a Dictionary
(with key) in a way phalanager/php wants.
formatting seems to work, the little that i tested it.
-tl
- tleslie
- Posts: 32
- Joined: August 3rd, 2012, 4:42 am
Re: Strongly Typed from Model to View
GetModel()["Object name"] isn't valid PHP syntax.
This should work:
Phalanger can handle IDictionary and IList types and work with them as with standard PHP array. Note IntelliSense doesn't support arrays yet.
This should work:
- Code: Select all
$model = GetModel();
$model["Object name"] =
Phalanger can handle IDictionary and IList types and work with them as with standard PHP array. Note IntelliSense doesn't support arrays yet.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
27 posts
• Page 3 of 3 • 1, 2, 3
Who is online
Users browsing this forum: No registered users and 28 guests